|
76 | 76 | } |
77 | 77 | }, |
78 | 78 | "scripts": { |
79 | | - "build": "npm run clean && shx rm -rf lib && tsc -b", |
80 | | - "lint": "eslint .", |
| 79 | + "build": "pnpm compile && pnpm copy-config && oclif manifest && oclif readme", |
| 80 | + "clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo", |
| 81 | + "compile": "tsc -b tsconfig.json", |
| 82 | + "copy-config": "[ -d src/config ] && cp -r src/config lib/ || true", |
| 83 | + "lint": "eslint src/**/*.ts", |
81 | 84 | "lint:fix": "eslint . --fix", |
82 | | - "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", |
| 85 | + "format": "eslint src/**/*.ts --fix", |
83 | 86 | "format:check": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\"", |
84 | | - "postpack": "shx rm -f oclif.manifest.json", |
| 87 | + "postpack": "rm -f oclif.manifest.json", |
85 | 88 | "posttest": "npm run lint", |
86 | | - "prepack": "npm run build && oclif manifest && oclif readme && npm run changelog", |
| 89 | + "prepack": "pnpm compile && pnpm copy-config && oclif manifest && oclif readme", |
| 90 | + "pretest": "tsc -p test", |
87 | 91 | "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", |
88 | 92 | "test": "mocha --forbid-only \"test/**/*.test.ts\"", |
89 | 93 | "test:coverage": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"", |
90 | 94 | "test:coverage:report": "nyc --reporter=lcov --reporter=text --reporter=clover --reporter=json-summary --extension .ts mocha --forbid-only \"test/**/*.test.ts\"", |
91 | 95 | "test:json": "mocha --forbid-only \"test/**/*.test.ts\" --reporter json --reporter-options output=report.json", |
92 | 96 | "test:safe": "[ -d test ] && npm test || echo 'No test directory found, skipping tests'", |
93 | | - "version": "oclif readme && git add README.md", |
94 | | - "clean": "rm -rf ./lib tsconfig.tsbuildinfo oclif.manifest.json", |
95 | | - "prepare": "npx husky && chmod +x .husky/pre-commit" |
| 97 | + "version": "oclif readme && git add README.md" |
96 | 98 | }, |
97 | 99 | "engines": { |
98 | 100 | "node": ">=20.19.0" |
|
0 commit comments