Skip to content

Commit 63563a8

Browse files
committed
refactor: standardize npm scripts and remove unused dependencies
- Standardize script naming with consistent prefixes (test:*, lint:*, format:*) - Add test:coverage scripts for workspace and individual packages - Remove unused dependencies: gray-matter, jsonc-parser - Clean up transitive dependencies no longer needed
1 parent 4c181e1 commit 63563a8

4 files changed

Lines changed: 15 additions & 123 deletions

File tree

package-lock.json

Lines changed: 0 additions & 109 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,23 @@
3333
"build:tsc:force": "tsc --build --force --pretty",
3434
"build": "npm run build --workspaces --if-present",
3535
"test": "npm run test --workspaces --if-present",
36-
"cli:test": "npm run test -w packages/copilot-instructions-cli",
37-
"ums:test": "npm run test -w packages/ums-lib",
36+
"test:cli": "npm run test -w packages/copilot-instructions-cli",
37+
"test:ums": "npm run test -w packages/ums-lib",
38+
"test:coverage": "npm run test:coverage --workspaces --if-present",
39+
"test:cli:coverage": "npm run test:coverage -w packages/copilot-instructions-cli --if-present",
40+
"test:ums:coverage": "npm run test:coverage -w packages/ums-lib --if-present",
3841
"lint": "eslint 'packages/*/src/**/*.ts'",
3942
"lint:fix": "eslint 'packages/*/src/**/*.ts' --fix",
40-
"cli:lint": "npm run lint -w packages/copilot-instructions-cli",
41-
"cli:lint:fix": "npm run lint:fix -w packages/copilot-instructions-cli",
42-
"ums:lint": "npm run lint -w packages/ums-lib",
43-
"ums:lint:fix": "npm run lint:fix -w packages/ums-lib",
43+
"lint:cli": "npm run lint -w packages/copilot-instructions-cli",
44+
"lint:cli:fix": "npm run lint:fix -w packages/copilot-instructions-cli",
45+
"lint:ums": "npm run lint -w packages/ums-lib",
46+
"lint:ums:fix": "npm run lint:fix -w packages/ums-lib",
4447
"format": "prettier --write 'packages/*/src/**/*.ts'",
4548
"format:check": "prettier --check 'packages/*/src/**/*.ts'",
46-
"cli:format": "npm run format -w packages/copilot-instructions-cli",
47-
"cli:format:check": "npm run format:check -w packages/copilot-instructions-cli",
48-
"ums:format": "npm run format -w packages/ums-lib",
49-
"ums:format:check": "npm run format:check -w packages/ums-lib",
49+
"format:cli": "npm run format -w packages/copilot-instructions-cli",
50+
"format:cli:check": "npm run format:check -w packages/copilot-instructions-cli",
51+
"format:ums": "npm run format -w packages/ums-lib",
52+
"format:ums:check": "npm run format:check -w packages/ums-lib",
5053
"typecheck": "npm run typecheck --workspaces --if-present",
5154
"quality-check": "npm run quality-check --workspaces --if-present",
5255
"pre-commit": "npm run typecheck && npx lint-staged",

packages/copilot-instructions-cli/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"scripts": {
2929
"build": "tsc --build --pretty",
3030
"test": "vitest run --run",
31-
"coverage": "vitest run --coverage",
31+
"test:coverage": "vitest run --coverage",
3232
"lint": "eslint ",
3333
"lint:fix": "eslint --fix",
3434
"format": "prettier --write'",
@@ -45,7 +45,6 @@
4545
"chalk": "^5.5.0",
4646
"cli-table3": "^0.6.5",
4747
"commander": "^14.0.0",
48-
"jsonc-parser": "^3.3.1",
4948
"ora": "^8.2.0"
5049
},
5150
"devDependencies": {

packages/ums-lib/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"scripts": {
3232
"build": "tsc --build --pretty",
3333
"test": "vitest run --run",
34-
"coverage": "vitest run --coverage",
34+
"test:coverage": "vitest run --coverage",
3535
"lint": "eslint .",
3636
"lint:fix": "eslint . --fix",
3737
"format": "prettier --write .",
@@ -45,7 +45,6 @@
4545
},
4646
"dependencies": {
4747
"glob": "^11.0.3",
48-
"gray-matter": "^4.0.3",
4948
"yaml": "^2.6.0"
5049
},
5150
"devDependencies": {

0 commit comments

Comments
 (0)