fix: move fixpack cli to lint-staged

This commit is contained in:
Dylan Piercey 2020-11-11 15:37:57 -08:00
parent d55f2db42a
commit def85ce671
No known key found for this signature in database
GPG Key ID: F6A9A2F45D062CBC
4 changed files with 9 additions and 12 deletions

View File

@ -1,8 +1,3 @@
{
"quiet": true,
"files": [
"package.json",
"packages/runtime/package.json",
"packages/translator/package.json"
]
"quiet": true
}

View File

@ -1,6 +1,6 @@
{
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged && fixpack && npm run size:write"
"pre-commit": "lint-staged && npm run size:write"
}
}

View File

@ -1,4 +1,5 @@
{
"*.{json,md}": ["prettier --write"],
"*.{js,ts}": ["eslint -f codeframe --fix", "prettier --write"]
"*.{js,ts}": ["eslint -f codeframe --fix", "prettier --write"],
"./{,packages/*/}package.json": ["fixpack"]
}

View File

@ -40,17 +40,18 @@
"private": true,
"scripts": {
"build": "lerna run build --parallel",
"build:size": "(cd ./packages/runtime && cross-env SIZE=1 rollup -c ./rollup.config.js)",
"ci:codecov": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
"ci:test": "nyc --reporter=text npm test",
"clean": "lerna clean && rm -rf ./packages/*/{dist,debug}",
"format": "eslint --fix -f visualstudio packages && prettier \"**/*.{json,md,ts,js}\" --write && fixpack",
"lint": "tsc --noEmit && eslint -f visualstudio packages && prettier \"**/*.{json,md,ts,js}\" -l",
"format": "npm run lint:eslint -- --fix && npm run lint:prettier -- --write && fixpack",
"lint": "tsc --noEmit && npm run lint:eslint && npm run lint:prettier -- -l",
"lint:eslint": "eslint -f visualstudio packages",
"lint:prettier": "prettier \"**/*.{json,md,ts,js}\"",
"postinstall": "lerna bootstrap --hoist --no-ci",
"release": "npm run build && lerna publish",
"report": "open ./coverage/lcov-report/index.html",
"size": "(cd ./packages/runtime && cross-env SIZE=1 rollup -c ./rollup.config.js) && node ./utilities/sizes.js",
"size:check": "cross-env CHECK=1 npm run size",
"size": "npm run build:size && node ./utilities/sizes.js",
"size:write": "cross-env WRITE=1 npm run size && git add .sizes.json",
"test": "cross-env NODE_ENV=test mocha -r ts-node/register -r source-map-support/register packages/*/test/{*.test.ts,*/*.test.ts}",
"test:coverage": "nyc --reporter=text-summary npm run test",