Skip to content

Commit ebbd508

Browse files
committed
fix: publish npm-shrinkwrap.json
1 parent 6ca3cbc commit ebbd508

File tree

5 files changed

+313
-291
lines changed

5 files changed

+313
-291
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
/tmp
99

1010
oclif.lock
11-
oclif.manifest.json
11+
oclif.manifest.json
12+
npm-shrinkwrap.json

.lintstagedrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"*.json": ["prettier --write"],
33
"*.md": ["prettier --write"],
4-
"+(src|test)/**/*.+(ts|js)": ["eslint --fix", "prettier --write"]
4+
"+(src|test|bin)/**/*.+(ts|js)": ["eslint --fix", "prettier --write"]
55
}

package.json

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@
88
"@oclif/core": "^3.19.2"
99
},
1010
"devDependencies": {
11-
"@commitlint/config-conventional": "^17.8.1",
11+
"@commitlint/config-conventional": "^18",
1212
"@oclif/prettier-config": "^0.2.1",
1313
"@oclif/test": "^3.1.16",
1414
"@types/chai": "^4.3.11",
1515
"@types/mocha": "^10.0.6",
1616
"@types/node": "^18",
1717
"chai": "^4.4.1",
18-
"commitlint": "^17.8.1",
18+
"commitlint": "^18",
1919
"eslint": "^8.56.0",
2020
"eslint-config-oclif": "^5.0.0",
2121
"eslint-config-oclif-typescript": "^3.0.47",
2222
"eslint-config-prettier": "^9.1.0",
23-
"husky": "^8.0.3",
24-
"lint-staged": "^14.0.1",
23+
"husky": "^9",
24+
"lint-staged": "^15",
2525
"mocha": "^10.3.0",
2626
"oclif": "^4.4.13",
2727
"prettier": "^3.2.5",
@@ -36,7 +36,7 @@
3636
"files": [
3737
"oclif.manifest.json",
3838
"/lib",
39-
"/oclif.lock"
39+
"npm-shrinkwrap.json"
4040
],
4141
"homepage": "https://github.com/oclif/plugin-help",
4242
"keywords": [
@@ -52,13 +52,16 @@
5252
"repository": "oclif/plugin-help",
5353
"scripts": {
5454
"build": "shx rm -rf lib && tsc",
55+
"clean": "shx rm -f oclif.manifest.json npm-shrinkwrap.json",
56+
"compile": "tsc",
5557
"lint": "eslint . --ext .ts",
56-
"postpack": "shx rm oclif.manifest.json oclif.lock",
58+
"postpack": "yarn run clean",
5759
"posttest": "yarn lint",
58-
"prepack": "yarn run build && oclif manifest . && oclif lock",
59-
"prepare": "husky install && yarn build",
60-
"pretest": "yarn build && tsc --noEmit",
61-
"test": "mocha --forbid-only \"test/**/*.test.ts\""
60+
"prepack": "yarn build && oclif manifest && oclif readme && npm shrinkwrap",
61+
"prepare": "husky && yarn build",
62+
"pretest": "yarn build --noEmit && tsc -p test --noEmit",
63+
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
64+
"version": "oclif readme && git add README.md"
6265
},
6366
"type": "module",
6467
"types": "./lib/index.d.ts"

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"noUnusedParameters": true,
88
"outDir": "lib",
99
"pretty": true,
10-
"rootDir": "src",
10+
"rootDirs": ["src"],
1111
"strict": true,
1212
"target": "ES2022",
1313
"moduleResolution": "Node16"

0 commit comments

Comments
 (0)