@sdkwork/ai-sdk 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +17 -0
  2. package/package.json +9 -5
package/README.md CHANGED
@@ -12,6 +12,23 @@ yarn add @sdkwork/ai-sdk
12
12
  pnpm add @sdkwork/ai-sdk
13
13
  ```
14
14
 
15
+ ## sdk-common Dependency Source
16
+
17
+ `@sdkwork/sdk-common` uses npm by default. You can switch between npm and git source:
18
+
19
+ ```bash
20
+ # switch to npm package (default)
21
+ npm run deps:common:npm
22
+ npm install
23
+
24
+ # switch to git repository
25
+ npm run deps:common:git
26
+ npm install
27
+
28
+ # check current source
29
+ npm run deps:common:show
30
+ ```
31
+
15
32
  ## Quick Start
16
33
 
17
34
  ```typescript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdkwork/ai-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "sdkwork-ai-sdk",
5
5
  "author": "SDKWork Team",
6
6
  "license": "MIT",
@@ -13,18 +13,22 @@
13
13
  ],
14
14
  "exports": {
15
15
  ".": {
16
+ "types": "./dist/index.d.ts",
16
17
  "import": "./dist/index.js",
17
- "require": "./dist/index.cjs",
18
- "types": "./dist/index.d.ts"
18
+ "require": "./dist/index.cjs"
19
19
  }
20
20
  },
21
21
  "scripts": {
22
22
  "build": "tsc --emitDeclarationOnly && vite build",
23
23
  "dev": "vite build --watch",
24
- "prepublishOnly": "npm run build"
24
+ "prepublishOnly": "npm run build",
25
+ "publish:public": "npm publish --access public --registry=https://registry.npmjs.org",
26
+ "deps:common:show": "npm pkg get \"dependencies.@sdkwork/sdk-common\"",
27
+ "deps:common:npm": "npm pkg set \"dependencies.@sdkwork/sdk-common=^1.0.1\"",
28
+ "deps:common:git": "npm pkg set \"dependencies.@sdkwork/sdk-common=git+https://github.com/Sdkwork-Cloud/sdkwork-sdk-common-typescript.git#main\""
25
29
  },
26
30
  "dependencies": {
27
- "@sdkwork/sdk-common": "^1.0.0"
31
+ "@sdkwork/sdk-common": "^1.0.1"
28
32
  },
29
33
  "devDependencies": {
30
34
  "@types/node": "^20.0.0",