@adspireai/adspire-node-sdk 1.0.74 → 1.0.76
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.
- package/README.md +13 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -63,6 +63,18 @@ Only the compiled SDK (dist/src/) is published to npm, not the source or script
|
|
|
63
63
|
|
|
64
64
|
- See `src/client.gen.ts` and `src/index.ts` for details.
|
|
65
65
|
|
|
66
|
+
### Local Development
|
|
67
|
+
|
|
68
|
+
For developers working locally with a parent application (e.g., `adspire-app`), you can copy the built SDK directly to the parent's node_modules after building:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
npm run generate
|
|
72
|
+
npm run build
|
|
73
|
+
npm run copy-docs
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
This allows you to test SDK changes immediately in your parent application without publishing to npm.
|
|
77
|
+
|
|
66
78
|
## Contributing
|
|
67
79
|
|
|
68
80
|
Pull requests welcome! For major changes, please open an issue first to discuss what you would like to change.
|
|
@@ -72,4 +84,4 @@ Pull requests welcome! For major changes, please open an issue first to discuss
|
|
|
72
84
|
*Generated by [@hey-api/openapi-ts](https://www.npmjs.com/package/@hey-api/openapi-ts)*
|
|
73
85
|
|
|
74
86
|
**Explanation:**
|
|
75
|
-
This `README.md` covers installation, environment setup, usage, available scripts, development workflows, and licensing, matching the project details found in your `package.json`, `env.example`, and source files. For more advanced SDK usage or full API endpoint documentation, you should look into your generated `src/sdk.gen.ts` or the official [Adspire API docs](https://api.adspire.ai/docs).
|
|
87
|
+
This `README.md` covers installation, environment setup, usage, available scripts, development workflows, and licensing, matching the project details found in your `package.json`, `env.example`, and source files. For more advanced SDK usage or full API endpoint documentation, you should look into your generated `src/sdk.gen.ts` or the official [Adspire API docs](https://api.adspire.ai/docs).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adspireai/adspire-node-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.76",
|
|
4
4
|
"description": "Official Node.js SDK for AdspireAI API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"setup": "cp env.example .env",
|
|
12
12
|
"generate": "ts-node scripts/generate-sdk.ts",
|
|
13
|
+
"copy-docs": "rimraf ../adspire-app/node_modules/@adspireai/adspire-node-sdk/dist && cp -r dist ../adspire-app/node_modules/@adspireai/adspire-node-sdk/",
|
|
13
14
|
"build": "tsc",
|
|
14
15
|
"clean": "rimraf dist",
|
|
15
16
|
"prebuild": "npm run clean",
|