Skip to content

Commit fe469d9

Browse files
committed
chore: merge main
2 parents 25bd93d + 2e0a806 commit fe469d9

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ This repository includes demo projects located in the `/demo` directory to help
267267
The `package.json` includes several scripts to help you manage and run the demo projects:
268268

269269
- **`demo:seed`**: Seeds the Strapi application with example data. This script also generates `.env` files with API tokens for the `demo-node-typescript` and `demo-node-javascript` projects.
270-
270+
271271
```bash
272272
pnpm run demo:seed
273273
```

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@strapi/sdk-js",
3-
"version": "1.0.0-beta.0",
3+
"version": "1.0.0-beta.1",
44
"description": "An SDK you can use the easily interface with Strapi from your javascript project",
55
"keywords": [
66
"strapi",
@@ -45,6 +45,13 @@
4545
"build": "rollup --config rollup.config.mjs --failAfterWarnings",
4646
"build:clean": "pnpm run clean && pnpm run build",
4747
"clean": "pnpm exec rimraf ./dist",
48+
"demo:build": "pnpm run build && pnpm -C demo/demo-node-typescript build",
49+
"demo:env": "test -f demo/.strapi-app/.env || cp demo/.strapi-app/.env.example demo/.strapi-app/.env",
50+
"demo:install": "pnpm install && pnpm -C demo/.strapi-app install && pnpm -C demo/demo-node-typescript install && pnpm -C demo/demo-node-javascript install",
51+
"demo:seed": "pnpm -C demo/.strapi-app seed:example",
52+
"demo:seed:clean": "pnpm exec rimraf demo/.strapi-app/.tmp/data.db && pnpm run demo:seed",
53+
"demo:setup": "pnpm demo:install && pnpm run demo:env && pnpm run demo:build && pnpm run demo:seed:clean",
54+
"demo:run": "pnpm -C demo/.strapi-app develop",
4855
"lint": "eslint .",
4956
"lint:fix": "eslint . --fix",
5057
"lint:fix:dry": "eslint . --fix-dry-run",
@@ -53,9 +60,6 @@
5360
"prettier:write": "prettier --write .",
5461
"test": "jest --verbose",
5562
"test:cov": "jest --verbose --coverage",
56-
"demo:seed": "pnpm -C demo/.strapi-app seed:example",
57-
"demo:seed:clean": "pnpm exec rimraf demo/.strapi-app/.tmp/data.db && pnpm run demo:seed",
58-
"demo:run": "pnpm -C demo/.strapi-app develop",
5963
"ts:check": "tsc -p tsconfig.build.json --noEmit",
6064
"watch": "rollup --config rollup.config.mjs --watch --failAfterWarnings",
6165
"prepack": "pnpm exec ./scripts/pre-pack.sh"

0 commit comments

Comments
 (0)