|
24 | 24 | "./packages/*" |
25 | 25 | ], |
26 | 26 | "scripts": { |
| 27 | + "build": "npm run tools:patch -- apply && node ./tools/s-projects \"npm run build -- --pretty\"", |
| 28 | + "build:clean": "npm run build:clean --workspaces", |
| 29 | + "build:watch": "npm run build && node ./tools/p-projects \"npm run build -- --watch --preserveWatchOutput --pretty\"", |
27 | 30 | "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", |
28 | 31 | "docs": "typedoc", |
29 | | - "format:pkg": "format-package --write", |
| 32 | + "format:pkg": "format-package --write \"./package.json\" \"./packages/*/package.json\"", |
30 | 33 | "lint": "eslint --ignore-path ./.eslintignore \"**/?(.)*.?([cm])[tj]s?(x)\"", |
31 | | - "precommit": "npm run projects:patch -- diff && npm run lint -- --cache && npm run projects:build && npm run projects:test -- --onlyChanged && npm run docs", |
32 | | - "prepare": "npm run prepare:husky", |
| 34 | + "precommit": "npm run tools:patch -- diff && npm run lint -- --cache && npm run build && npm run test -- --onlyChanged && npm run docs", |
| 35 | + "prepare": "npm run prepare:husky && git submodule update --init --recursive", |
33 | 36 | "prepare:husky": "run-script-os", |
34 | 37 | "prepare:husky:default": "[ -d ./node_modules/husky ] && husky install || true", |
35 | 38 | "prepare:husky:windows": "if exist './node_modules/husky' { husky install }", |
36 | | - "projects:build": "npm run projects:patch -- apply && node ./tools/s-projects \"npm run build -- --pretty\"", |
37 | | - "projects:build:clean": "npm run build:clean --workspaces", |
38 | | - "projects:build:watch": "npm run projects:build && node ./tools/p-projects \"npm run build -- --watch --preserveWatchOutput --pretty\"", |
39 | | - "projects:patch": "node ./tools/typedoc-patcher --no-stash", |
40 | | - "projects:test": "jest", |
41 | 39 | "release": "run-script-os", |
42 | 40 | "release:default": "./tools/release.sh", |
43 | 41 | "release:windows": "echo \"Unsupported platform for release. Run this command only from an UNIX-like environment.\"", |
| 42 | + "test": "jest", |
44 | 43 | "test:ci": "cross-env JEST_JUNIT_OUTPUT_NAME=junit.xml jest --config jest.config.ci.js --all --ci --reporters=default --reporters=jest-junit", |
45 | 44 | "test:ci:coverage": "npm run test:ci -- --collectCoverage", |
46 | 45 | "tools:bump-versions": "cross-env NODE_NO_WARNINGS=1 node tools/bump-versions", |
47 | 46 | "tools:infer-next-version": "cross-env NODE_NO_WARNINGS=1 node tools/infer-next-version", |
48 | | - "tools:packages-sync": "cross-env NODE_NO_WARNINGS=1 node tools/package-proto" |
| 47 | + "tools:patch": "node ./tools/typedoc-patcher --no-stash", |
| 48 | + "tools:sync-proto": "cross-env NODE_NO_WARNINGS=1 node tools/package-proto" |
49 | 49 | }, |
50 | 50 | "commitlint": { |
51 | 51 | "extends": [ |
|
0 commit comments