Skip to content

Commit

Permalink
Merge pull request #369 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 8196f6f + d2a9cd1 commit 487d25c
Show file tree
Hide file tree
Showing 6 changed files with 340 additions and 298 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
.idea
oclif.lock
oclif.manifest.json
npm-shrinkwrap.json
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname $0)/_/husky.sh"

yarn run commitlint --edit $1
yarn commitlint --edit $1
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"]
}
23 changes: 11 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,24 @@
"author": "Salesforce",
"bugs": "https://github.com/oclif/plugin-version/issues",
"dependencies": {
"@oclif/core": "^3.20.0"
"@oclif/core": "^3.21.0"
},
"devDependencies": {
"@commitlint/config-conventional": "^17.8.1",
"@commitlint/config-conventional": "^18",
"@oclif/plugin-help": "^6",
"@oclif/prettier-config": "^0.2.1",
"@oclif/test": "^3",
"@types/chai": "^4.3.11",
"@types/mocha": "^10",
"@types/node": "^18",
"chai": "^4.4.1",
"commitlint": "^17.8.1",
"commitlint": "^18",
"eslint": "^8.56.0",
"eslint-config-oclif": "^5",
"eslint-config-oclif-typescript": "^3",
"eslint-config-prettier": "^9.1.0",
"fancy-test": "^3",
"husky": "^8",
"lint-staged": "^14.0.1",
"husky": "^9",
"lint-staged": "^15",
"mocha": "^10.3.0",
"oclif": "^4",
"prettier": "^3.2.5",
Expand All @@ -36,6 +35,7 @@
},
"files": [
"oclif.manifest.json",
"npm-shrinkwrap.json",
"oclif.lock",
"/lib"
],
Expand All @@ -54,15 +54,14 @@
"repository": "oclif/plugin-version",
"scripts": {
"build": "shx rm -rf lib && tsc",
"clean": "shx rm -f oclif.manifest.json oclif.lock",
"commitlint": "commitlint",
"clean": "shx rm -f oclif.manifest.json npm-shrinkwrap.json oclif.lock",
"compile": "tsc",
"lint": "eslint . --ext .ts",
"postpublish": "yarn run clean",
"postpack": "yarn run clean",
"posttest": "yarn lint",
"prepare": "husky install && yarn build",
"prepublishOnly": "yarn run build && oclif lock && oclif manifest . && oclif readme",
"prepack": "yarn build && oclif manifest && oclif readme && npm shrinkwrap && oclif lock",
"prepare": "husky && yarn build",
"pretest": "yarn build --noEmit && tsc -p test --noEmit",
"preversion": "yarn run clean",
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
"version": "oclif readme && git add README.md"
},
Expand Down
Loading

0 comments on commit 487d25c

Please sign in to comment.