Skip to content

Commit

Permalink
[sort-package-json]glob対応
Browse files Browse the repository at this point in the history
  • Loading branch information
huuyafwww committed Feb 1, 2025
1 parent 5c4e5d4 commit b64e0ec
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"build": "turbo run build",
"clean": "turbo run clean",
"prepare": "husky",
"sort:package": "sort-package-json && turbo run sort:package --parallel",
"sort:package": "sort-package-json 'package.json' 'packages/*/package.json'",
"version": "changeset",
"version:apply": "changeset version",
"version:publish": "changeset publish"
Expand Down
3 changes: 1 addition & 2 deletions packages/tsconfig-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
],
"scripts": {
"build": "mkdir src && touch src/index.ts && tsc --showConfig -p tsconfig.base.json | jq 'del(.files)' | jq '{\"$schema\": \"https://json.schemastore.org/tsconfig\"} + .' > tsconfig.json && rm -f src/index.ts && rmdir src",
"clean": "rimraf node_modules",
"sort:package": "sort-package-json"
"clean": "rimraf node_modules"
},
"devDependencies": {
"@tsconfig/strictest": "^2.0.5",
Expand Down
3 changes: 1 addition & 2 deletions packages/tsconfig-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
],
"scripts": {
"build": "mkdir src && touch src/index.ts && tsc --showConfig -p tsconfig.base.json | jq 'del(.files, .include, .exclude)' | jq '{\"$schema\": \"https://json.schemastore.org/tsconfig\"} + .' > tsconfig.json && rm -f src/index.ts && rmdir src",
"clean": "rimraf node_modules",
"sort:package": "sort-package-json"
"clean": "rimraf node_modules"
},
"devDependencies": {
"@huuyafwww/tsconfig-common": "workspace:*",
Expand Down
5 changes: 0 additions & 5 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
},
"clean": {
"cache": false
},
"sort:package": {
"dependsOn": [],
"cache": false,
"inputs": ["package.json"]
}
}
}

0 comments on commit b64e0ec

Please sign in to comment.