release: client 0.1.0 (#6)
* chore(client): add assets and bump version * chore: rename scope to fal-ai
This commit is contained in:
parent
5c4cdee6a5
commit
ed322048ff
@ -1,6 +1,6 @@
|
|||||||
# The fal-serverless JS Client
|
# The fal-serverless JS Client
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
@ -27,7 +27,7 @@ It also handle platform differences, so it work seamlessly across different JS r
|
|||||||
1. First you need to configure your credentials:
|
1. First you need to configure your credentials:
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
import * as fal from '@fal/serverless-js';
|
import * as fal from '@fal-ai/serverless-js';
|
||||||
|
|
||||||
fal.config({
|
fal.config({
|
||||||
credentials: {
|
credentials: {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import styles from './index.module.css';
|
import styles from './index.module.css';
|
||||||
import * as fal from '@fal/serverless-client';
|
import * as fal from '@fal-ai/serverless-client';
|
||||||
|
|
||||||
fal.config({
|
fal.config({
|
||||||
credentials: {
|
credentials: {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import * as fal from '@fal/serverless-client';
|
import * as fal from '@fal-ai/serverless-client';
|
||||||
|
|
||||||
export type GenerateImageInput = {
|
export type GenerateImageInput = {
|
||||||
prompt: string;
|
prompt: string;
|
||||||
|
|||||||
@ -1,7 +1,8 @@
|
|||||||
{
|
{
|
||||||
"name": "@fal/serverless-client",
|
"name": "@fal-ai/serverless-client",
|
||||||
"description": "The fal serverless JS/TS client",
|
"description": "The fal serverless JS/TS client",
|
||||||
"version": "0.0.0-semantic-release",
|
"version": "0.1.0",
|
||||||
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/fal-ai/serverless-js.git",
|
"url": "https://github.com/fal-ai/serverless-js.git",
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
"tsConfig": "libs/client/tsconfig.lib.json",
|
"tsConfig": "libs/client/tsconfig.lib.json",
|
||||||
"packageJson": "libs/client/package.json",
|
"packageJson": "libs/client/package.json",
|
||||||
"main": "libs/client/src/index.ts",
|
"main": "libs/client/src/index.ts",
|
||||||
"assets": ["libs/client/*.md"]
|
"assets": ["LICENSE", "CODE_OF_CONDUCT.md", "README.md"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
|
|||||||
@ -14,6 +14,6 @@ describe('the runtime test suite', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should create the correct user agent identifier', () => {
|
it('should create the correct user agent identifier', () => {
|
||||||
expect(getUserAgent()).toMatch(/@fal\/serverless-client/);
|
expect(getUserAgent()).toMatch(/@fal-ai\/serverless-client/);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@fal/serverless-codegen",
|
"name": "@fal-ai/serverless-codegen",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"bin": {
|
"bin": {
|
||||||
"ksjs": "./bin/run"
|
"ksjs": "./bin/run"
|
||||||
|
|||||||
@ -38,7 +38,7 @@ export function generateFunction(metadata: IsolateFunctionMetadata): string {
|
|||||||
members.push({
|
members.push({
|
||||||
kind: StructureKind.ImportDeclaration,
|
kind: StructureKind.ImportDeclaration,
|
||||||
namedImports: ['run'],
|
namedImports: ['run'],
|
||||||
moduleSpecifier: '@fal/serverless-client',
|
moduleSpecifier: '@fal-ai/serverless-client',
|
||||||
} as ImportDeclarationStructure);
|
} as ImportDeclarationStructure);
|
||||||
members.push({
|
members.push({
|
||||||
kind: StructureKind.ImportDeclaration,
|
kind: StructureKind.ImportDeclaration,
|
||||||
|
|||||||
2
nx.json
2
nx.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "./node_modules/nx/schemas/nx-schema.json",
|
"$schema": "./node_modules/nx/schemas/nx-schema.json",
|
||||||
"npmScope": "@fal/serverless",
|
"npmScope": "@fal-ai/serverless",
|
||||||
"tasksRunnerOptions": {
|
"tasksRunnerOptions": {
|
||||||
"default": {
|
"default": {
|
||||||
"runner": "@nrwl/nx-cloud",
|
"runner": "@nrwl/nx-cloud",
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "@fal/serverless",
|
"name": "@fal-ai/serverless",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@fal/serverless",
|
"name": "@fal-ai/serverless",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@fal/serverless",
|
"name": "@fal-ai/serverless",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@ -15,8 +15,8 @@
|
|||||||
"skipDefaultLibCheck": true,
|
"skipDefaultLibCheck": true,
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@fal/serverless-client": ["libs/client/src/index.ts"],
|
"@fal-ai/serverless-client": ["libs/client/src/index.ts"],
|
||||||
"@fal/serverless-codegen": ["libs/codegen/src/index.ts"]
|
"@fal-ai/serverless-codegen": ["libs/codegen/src/index.ts"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"exclude": ["node_modules", "tmp"]
|
"exclude": ["node_modules", "tmp"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user