Skip to content

Commit

Permalink
Merge pull request #555 from oclif/mdonnalley/shrinkwrap
Browse files Browse the repository at this point in the history
feat: publish npm-shrinkwrap.json
  • Loading branch information
shetzel authored Mar 6, 2024
2 parents fc72c0c + 48d99e5 commit 31ccdf0
Show file tree
Hide file tree
Showing 5 changed files with 366 additions and 337 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
/.vscode

oclif.lock
oclif.manifest.json
oclif.manifest.json
npm-shrinkwrap.json
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname $0)/_/husky.sh"

yarn lint-staged --concurrent false
2 changes: 1 addition & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"*.json": ["prettier --write"],
"*.md": ["prettier --write"],
"+(src|test)/**/*.+(ts|js)": ["eslint --fix", "prettier --write"]
"+(src|test|bin)/**/*.+(ts|js)": ["eslint --fix", "prettier --write"]
}
38 changes: 21 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,32 @@
"author": "Salesforce",
"bugs": "https://github.com/oclif/plugin-not-found/issues",
"dependencies": {
"@oclif/core": "^3.20.0",
"@oclif/core": "^3.21.0",
"chalk": "^5.3.0",
"fast-levenshtein": "^3.0.0"
},
"devDependencies": {
"@commitlint/config-conventional": "^17.8.1",
"@oclif/plugin-commands": "^2.2.28",
"@oclif/plugin-help": "^5.2.20",
"@commitlint/config-conventional": "^18",
"@oclif/plugin-commands": "^3",
"@oclif/plugin-help": "^6",
"@oclif/prettier-config": "^0.2.1",
"@oclif/test": "^3.2.1",
"@types/chai": "^4.3.11",
"@types/fast-levenshtein": "^0.0.4",
"@types/mocha": "^10.0.6",
"@types/node": "^18",
"@types/supports-color": "^8.1.3",
"chai": "^4.4.1",
"commitlint": "^17.8.1",
"commitlint": "^18",
"eslint": "^8.57.0",
"eslint-config-oclif": "^5.0.3",
"eslint-config-oclif-typescript": "^3.0.48",
"eslint-config-prettier": "^9.1.0",
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
"husky": "^9",
"lint-staged": "^15",
"mocha": "^10.3.0",
"oclif": "^4.4.19",
"prettier": "^3.2.5",
"shx": "^0.3.4",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
},
Expand All @@ -39,9 +39,10 @@
},
"exports": "./lib/index.js",
"files": [
"/oclif.manifest.json",
"/lib",
"/oclif.lock"
"oclif.manifest.json",
"npm-shrinkwrap.json",
"oclif.lock",
"/lib"
],
"homepage": "https://github.com/oclif/plugin-not-found",
"keywords": [
Expand All @@ -59,14 +60,17 @@
},
"repository": "oclif/plugin-not-found",
"scripts": {
"build": "rm -rf lib && tsc",
"build": "shx rm -rf lib && tsc",
"clean": "shx rm -f oclif.manifest.json npm-shrinkwrap.json oclif.lock",
"compile": "tsc",
"lint": "eslint . --ext .ts",
"postpublish": "rm oclif.manifest.json oclif.lock",
"postpack": "yarn run clean",
"posttest": "yarn lint",
"prepare": "husky install && yarn build",
"prepublishOnly": "yarn run build && oclif manifest . && oclif lock",
"pretest": "yarn build && tsc -p test --noEmit",
"test": "mocha --forbid-only \"test/**/*.test.ts\""
"prepack": "yarn build && oclif manifest && oclif readme && npm shrinkwrap && oclif lock",
"prepare": "husky && yarn build",
"pretest": "yarn build --noEmit && tsc -p test --noEmit",
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
"version": "oclif readme && git add README.md"
},
"type": "module",
"types": "lib/index.d.ts"
Expand Down
Loading

0 comments on commit 31ccdf0

Please sign in to comment.