From 9915d0ec2fda429d7a7a2596b5c3d7b289a6c744 Mon Sep 17 00:00:00 2001 From: cenfun Date: Fri, 21 Jun 2024 06:54:42 +0800 Subject: [PATCH] update starfall-cli as dev dependency --- .github/workflows/static.yml | 6 ++---- README.md | 2 +- README.zh-Hans.md | 2 +- package.json | 7 ++++--- test/package.json | 2 +- 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 4a9c300f..295d395b 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -36,8 +36,7 @@ jobs: with: node-version: 18.x cache: '' - - run: npm i starfall-cli -g - - run: npm i + - run: npm install - run: npx playwright install --with-deps - run: npm run build - run: npm run test @@ -58,8 +57,7 @@ jobs: with: node-version: 20.x cache: '' - - run: npm i starfall-cli -g - - run: npm i + - run: npm install - run: npx playwright install --with-deps - run: npm run build - run: npm run test diff --git a/README.md b/README.md index 853f75fd..92c94ad5 100644 --- a/README.md +++ b/README.md @@ -1062,8 +1062,8 @@ const coverageOptions = { - Node.js 20+ - VSCode (extensions: eslint/stylelint/vue) ```sh -npm install starfall-cli -g npm install +npx playwright install --with-deps npm run build npm run test diff --git a/README.zh-Hans.md b/README.zh-Hans.md index b1598293..0e0c5c83 100644 --- a/README.zh-Hans.md +++ b/README.zh-Hans.md @@ -1066,8 +1066,8 @@ const coverageOptions = { - Node.js 20+ - VSCode (extensions: eslint/stylelint/vue) ```sh -npm install starfall-cli -g npm install +npx playwright install --with-deps npm run build npm run test diff --git a/package.json b/package.json index 36fcb89d..893223e5 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "types": "./lib/index.d.ts", "scripts": { "build-test": "node ./test/build/build-test.js", - "build": "sf lint && sf b -p && npm run build-test", + "build": "npx sf lint && npx sf b -p && npm run build-test", "test-unit": "mocha --parallel test/unit/*.test.js", "test-node-env": "cross-env NODE_V8_COVERAGE=.temp/v8-coverage-env node ./test/test-node-env.js && node ./test/generate-report.js", "test-node-api": "cross-env NODE_V8_COVERAGE=.temp/v8-coverage-api node ./test/test-node-api.js", @@ -55,10 +55,10 @@ "test-all": "node ./test/test.js && node ./scripts/docs.js", "test": "npm run test-unit && npx mcr npm run test-all -c test/mcr.config.mcr.js", "test:snap": "cross-env TEST_SNAPSHOT=true npm run test", - "dev": "sf d app", + "dev": "npx sf d app", "open": "node ./scripts/open.js", "eol": "git rm -rf --cached . && git reset --hard HEAD", - "patch": "npm run build && npm run test && sf publish patch -r" + "patch": "npm run build && npm run test && npx sf publish patch -r" }, "workspaces": [ "packages/*", @@ -94,6 +94,7 @@ "eslint-plugin-vue": "^9.26.0", "find-up": "^7.0.0", "minimatch": "^9.0.4", + "starfall-cli": "^2.0.19", "stylelint": "^16.6.1", "stylelint-config-plus": "^1.1.2", "supports-color": "^9.4.0", diff --git a/test/package.json b/test/package.json index 996d3795..97b97bca 100644 --- a/test/package.json +++ b/test/package.json @@ -23,7 +23,7 @@ "rollup": "^4.18.0", "swc-loader": "^0.2.6", "ts-loader": "^9.5.1", - "typescript": "^5.4.5", + "typescript": "^5.5.2", "webpack": "^5.92.1" } }