release: client 0.1.0 (#6)

* chore(client): add assets and bump version
* chore: rename scope to fal-ai
This commit is contained in:
Daniel Rochetti 2023-03-31 14:35:08 -07:00 committed by GitHub
parent 5c4cdee6a5
commit ed322048ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 17 additions and 16 deletions

View File

@ -1,6 +1,6 @@
# The fal-serverless JS Client # The fal-serverless JS Client
![NPM](https://img.shields.io/npm/v/@fal/serverless-js) ![NPM](https://img.shields.io/npm/v/@fal-ai/serverless-js)
![License](https://img.shields.io/github/license/fal-ai/serverless-js) ![License](https://img.shields.io/github/license/fal-ai/serverless-js)
![Build](https://img.shields.io/github/actions/workflow/status/fal-ai/serverless-js/build) ![Build](https://img.shields.io/github/actions/workflow/status/fal-ai/serverless-js/build)
@ -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: {

View File

@ -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: {

View File

@ -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;

View File

@ -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",

View File

@ -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": {

View File

@ -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/);
}); });
}); });

View File

@ -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"

View File

@ -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,

View File

@ -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
View File

@ -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": {

View File

@ -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": {

View File

@ -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"]