Skip to content

Commit fe7947a

Browse files
committed
fix: publish npm-shrinkwrap.json
1 parent 723580e commit fe7947a

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ node_modules
1010
.vscode/
1111

1212
oclif.lock
13-
oclif.manifest.json
13+
oclif.manifest.json
14+
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: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"@oclif/prettier-config": "^0.2.1",
1717
"@oclif/test": "^3.1.12",
1818
"@types/chai": "^4",
19-
"@types/chalk": "^2.2.0",
2019
"@types/debug": "^4.1.12",
2120
"@types/ejs": "^3.1.5",
2221
"@types/mocha": "^10.0.6",
@@ -28,8 +27,7 @@
2827
"eslint-config-oclif": "^5.0.0",
2928
"eslint-config-oclif-typescript": "^3.0.47",
3029
"eslint-config-prettier": "^9.1.0",
31-
"globby": "^11",
32-
"husky": "^8.0.3",
30+
"husky": "^9",
3331
"lint-staged": "^15.2.2",
3432
"mocha": "^10.3.0",
3533
"nock": "^13.5.1",
@@ -45,9 +43,9 @@
4543
},
4644
"exports": "./lib/index.js",
4745
"files": [
48-
"/lib",
49-
"/oclif.manifest.json",
50-
"/oclif.lock"
46+
"oclif.manifest.json",
47+
"npm-shrinkwrap.json",
48+
"/lib"
5149
],
5250
"homepage": "https://github.com/oclif/plugin-autocomplete",
5351
"keywords": [
@@ -65,12 +63,14 @@
6563
"repository": "oclif/plugin-autocomplete",
6664
"scripts": {
6765
"build": "shx rm -rf lib && tsc",
66+
"clean": "shx rm -f oclif.manifest.json npm-shrinkwrap.json",
67+
"compile": "tsc",
6868
"lint": "eslint . --ext .ts",
69-
"postpack": "shx rm -f oclif.manifest.json oclif.lock",
69+
"postpack": "yarn run clean",
7070
"posttest": "yarn lint",
71-
"prepack": "shx rm -rf lib && tsc && oclif lock && oclif manifest . && oclif readme",
72-
"prepare": "husky install && yarn build",
73-
"pretest": "yarn build && tsc -p test",
71+
"prepack": "yarn build && oclif manifest && oclif readme && npm shrinkwrap",
72+
"prepare": "husky && yarn build",
73+
"pretest": "yarn build --noEmit && tsc -p test --noEmit",
7474
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
7575
"version": "oclif readme && git add README.md"
7676
},

0 commit comments

Comments
 (0)