|
50 | 50 | "c8": "^10.1.3", |
51 | 51 | "camelcase": "^8.0.0", |
52 | 52 | "chai": "^5.2.0", |
53 | | - "cross-env": "^7.0.3", |
54 | 53 | "decamelize": "^6.0.0", |
55 | 54 | "eslint": "9.29.0", |
56 | 55 | "eslint-config-canonical": "~44.9.5", |
|
80 | 79 | ], |
81 | 80 | "license": "BSD-3-Clause", |
82 | 81 | "lint-staged": { |
83 | | - ".eslintignore": [ |
84 | | - "npm run lint-fix", |
85 | | - "git add ." |
86 | | - ], |
87 | | - "*.js": "npm run lint-arg -- --fix" |
| 82 | + "*.js": "eslint --fix" |
88 | 83 | }, |
89 | 84 | "type": "module", |
90 | 85 | "main": "./dist/index.cjs", |
|
140 | 135 | "url": "https://github.com/gajus/eslint-plugin-jsdoc/issues" |
141 | 136 | }, |
142 | 137 | "run-if-changed": { |
143 | | - "package-lock.json": "npm run install-offline" |
| 138 | + "package-lock.json": "pnpm run install-offline" |
144 | 139 | }, |
145 | 140 | "scripts": { |
146 | 141 | "tsc": "tsc", |
147 | 142 | "tsc-build": "tsc -p tsconfig-prod.json", |
148 | | - "build": "rimraf ./dist && cross-env NODE_ENV=production babel ./src --out-file-extension .cjs --out-dir ./dist --copy-files --source-maps --ignore ./src/bin/*.js --no-copy-ignored && replace 'require\\(\"\\.(.*?)\\.[^.]*?\"\\)' 'require(\".$1.cjs\")' 'dist' -r --include=\"*.cjs\" && pnpm tsc-build", |
| 143 | + "build": "rimraf ./dist && NODE_ENV=production babel ./src --out-file-extension .cjs --out-dir ./dist --copy-files --source-maps --ignore ./src/bin/*.js --no-copy-ignored && replace 'require\\(\"\\.(.*?)\\.[^.]*?\"\\)' 'require(\".$1.cjs\")' 'dist' -r --include=\"*.cjs\" && pnpm tsc-build", |
149 | 144 | "check-docs": "babel-node ./src/bin/generateDocs.js --check", |
150 | | - "create-docs": "npm run create-options && babel-node ./src/bin/generateDocs.js", |
| 145 | + "create-docs": "pnpm run create-options && babel-node ./src/bin/generateDocs.js", |
151 | 146 | "create-rule": "babel-node ./src/bin/generateRule.js", |
152 | 147 | "create-options": "node ./src/bin/generateOptions.mjs", |
153 | 148 | "install-offline": "pnpm install --prefer-offline --no-audit", |
154 | | - "lint": "npm run lint-arg -- .", |
155 | | - "lint-arg": "eslint", |
156 | | - "lint-fix": "npm run lint-arg -- --fix .", |
| 149 | + "lint": "eslint", |
| 150 | + "lint-fix": "eslint --fix", |
157 | 151 | "prepare": "husky", |
158 | | - "test-no-cov": "cross-env BABEL_ENV=test mocha", |
159 | | - "test": "c8 npm run test-no-cov", |
160 | | - "test-cov": "cross-env TIMING=1 c8 --reporter text npm run test-no-cov", |
161 | | - "test-index": "npm run test-no-cov -- test/rules/index.js" |
| 152 | + "test-no-cov": "BABEL_ENV=test mocha", |
| 153 | + "test": "c8 pnpm run test-no-cov", |
| 154 | + "test-cov": "TIMING=1 c8 --reporter text pnpm run test-no-cov", |
| 155 | + "test-index": "pnpm run test-no-cov test/rules/index.js" |
162 | 156 | }, |
163 | 157 | "version": "1.0.0" |
164 | 158 | } |
0 commit comments