|
49 | 49 | "scripts": { |
50 | 50 | "prebootstrap": "bash scripts/prebootstrap", |
51 | 51 | "bootstrap": "bash scripts/bootstrap --test || (echo 'Bootstrap failed.' && mv -v dist/ohm-grammar.js.old dist/ohm-grammar.js && mv -v dist/built-in-rules.js.old dist/built-in-rules.js && mv -v dist/operations-and-attributes.js.old dist/operations-and-attributes.js)", |
52 | | - "build": "yarn build:debug && yarn build:min", |
| 52 | + "build": "pnpm build:debug && pnpm build:min", |
53 | 53 | "build:min": "terser dist/ohm.js --mangle --compress -o dist/ohm.min.js", |
54 | | - "build:debug": "yarn build:cjs && node scripts/generate-types.js", |
| 54 | + "build:debug": "pnpm build:cjs && node scripts/generate-types.js", |
55 | 55 | "build:cjs": "rollup -c rollup.config.js", |
56 | 56 | "clean": "rm -f dist/ohm.js dist/ohm.min.js", |
57 | 57 | "lint": "eslint . --ignore-path ../.eslintignore", |
58 | 58 | "format": "prettier . --write --ignore-path ../.prettierignore --config ../.prettierrc && eslint . --ignore-path ../.eslintignore --fix", |
59 | 59 | "test": "ava && node test/_test-doc.js", |
60 | 60 | "test-watch": "ava --watch", |
61 | | - "pre-commit": "yarn run lint && yarn run build && yarn run test", |
| 61 | + "pre-commit": "pnpm lint && pnpm build && pnpm test", |
62 | 62 | "prebuild": "node scripts/prebuild.js", |
63 | 63 | "prepublishOnly": "bash scripts/prepublishOnly", |
64 | | - "prepack": "cp ../../README.md . && yarn build", |
| 64 | + "prepack": "cp ../../README.md . && pnpm build", |
65 | 65 | "postpack": "rm README.md", |
66 | 66 | "postpublish": "echo '👉 Now go to https://github.com/harc/ohm/releases and create a release.'", |
67 | 67 | "unsafe-bootstrap": "bash scripts/bootstrap", |
68 | 68 | "update-contributors": "bash scripts/update-contributors", |
69 | | - "watch": "yarn build:cjs --watch" |
| 69 | + "watch": "pnpm build:cjs --watch" |
70 | 70 | }, |
71 | 71 | "license": "MIT", |
72 | 72 | "author": "Alex Warth <alexwarth@gmail.com> (http://tinlizzie.org/~awarth)", |
|
0 commit comments