-
Notifications
You must be signed in to change notification settings - Fork 8
/
package.json
31 lines (31 loc) · 1.43 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
"name": "ts",
"version": "0.0.1",
"description": "Monorepo of assorted typescript projects",
"repository": "https://github.com/mmkal/ts",
"author": "mmkal <misha.kaletsky@gmail.com>",
"license": "Apache-2.0",
"private": true,
"scripts": {
"jest": "./tools/rig/node_modules/.bin/jest",
"coverage": "npm run jest -- --coverage",
"fix-packages": "node tools/rig/rig sort-package-json 'packages/*/package.json'",
"build": "rush build",
"lint": "rush lint",
"test": "rush test",
"clean": "npx lerna exec -- 'rm -rf dist'",
"eslint": "./tools/rig/node_modules/.bin/eslint --ext .ts,.js,.md,.yml",
"commit-date": "git log -n 1 --date=format:'%Y-%m-%d-%H-%M-%S' --pretty=format:'%ad'",
"current-branch": "echo \"${CURRENT_BRANCH-$(git rev-parse --abbrev-ref HEAD)}\" | sed -E 's/refs\\/heads\\///' | sed -E 's/\\W|_/-/g'",
"canary-preid": "echo \"$(yarn --silent current-branch)-$(yarn --silent commit-date)\"",
"publish-canary": "lerna publish --canary --preid $(yarn --silent canary-preid) --dist-tag $(yarn --silent current-branch)",
"prepublish-packages": "node scripts/prepublish && npm run fix-packages && yarn clean && yarn build",
"prepack": "node scripts/permalink",
"check-entrypoints": "lerna exec -- node -e 'require.resolve(`.`)'",
"postpack": "yarn check-entrypoints && git checkout -- .",
"publish-packages": "lerna publish"
},
"workspaces": [
"packages/*"
]
}