Skip to content

Commit 39ff428

Browse files
committed
fix: publish npm-shrinkwrap.json
1 parent 2751ae9 commit 39ff428

File tree

7 files changed

+36
-62
lines changed

7 files changed

+36
-62
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ oclif.manifest.json
66
yarn-error.json
77

88
.idea/*
9-
oclif.lock
9+
oclif.lock
10+
npm-shrinkwrap.json

.lintstagedrc.json

+1-1
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
}

commitlint.config.js

-1
This file was deleted.

package.json

+11-10
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
"devDependencies": {
1919
"@commitlint/config-conventional": "^18.6.2",
20-
"@oclif/plugin-help": "^5.2.20",
20+
"@oclif/plugin-help": "^6",
2121
"@oclif/prettier-config": "^0.2.1",
2222
"@oclif/test": "^3.1.12",
2323
"@types/chai": "^4.3.11",
@@ -32,12 +32,13 @@
3232
"eslint-config-oclif": "^5.0.0",
3333
"eslint-config-oclif-typescript": "^3.0.42",
3434
"eslint-config-prettier": "^9.1.0",
35-
"husky": "^8.0.3",
35+
"husky": "^9",
3636
"lint-staged": "^15.2.2",
3737
"mocha": "^10.2.0",
3838
"nyc": "^15",
3939
"oclif": "^4.4.8",
4040
"prettier": "^3.2.5",
41+
"shx": "^0.3.4",
4142
"sinon": "^17.0.1",
4243
"ts-node": "^10.9.2",
4344
"typescript": "^5.2.2"
@@ -50,9 +51,7 @@
5051
"/lib",
5152
"/npm-shrinkwrap.json",
5253
"/oclif.manifest.json",
53-
"/schemas",
54-
"/yarn.lock",
55-
"/oclif.lock"
54+
"/schemas"
5655
],
5756
"homepage": "https://github.com/oclif/plugin-command-snapshot",
5857
"keywords": [
@@ -78,13 +77,15 @@
7877
},
7978
"repository": "oclif/plugin-command-snapshot",
8079
"scripts": {
81-
"build": "rm -rf lib && tsc -b",
82-
"commitlint": "commitlint",
80+
"build": "shx rm -rf lib && tsc",
81+
"clean": "shx rm -f oclif.manifest.json npm-shrinkwrap.json",
82+
"compile": "tsc",
8383
"lint": "eslint . --ext .ts",
84-
"postpack": "rm -f oclif.lock oclif.manifest.json",
84+
"postpack": "yarn run clean",
8585
"posttest": "yarn lint",
86-
"prepack": "rm -rf lib && tsc -b && oclif lock && oclif manifest . && oclif readme",
87-
"prepare": "husky install && yarn build",
86+
"prepack": "yarn build && oclif manifest && oclif readme && npm shrinkwrap",
87+
"prepare": "husky && yarn build",
88+
"pretest": "yarn build --noEmit && tsc -p test --noEmit",
8889
"test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\" --timeout 20000",
8990
"version": "oclif readme && git add README.md"
9091
},

src/commands/schema/generate.ts

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ export function getAllFiles(dirPath: string, ext: string, allFiles: string[] = [
3636
export class SchemaGenerator {
3737
private classToId: Record<string, string> = {}
3838

39-
// eslint-disable-next-line no-useless-constructor
4039
constructor(
4140
private base: SnapshotCommand,
4241
private ignoreVoid = true,

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"declaration": true,
44
"module": "Node16",
55
"outDir": "lib",
6-
"rootDir": "src",
6+
"rootDirs": ["./src"],
77
"strict": true,
88
"target": "ES2022",
99
"skipLibCheck": true,

yarn.lock

+21-47
Original file line numberDiff line numberDiff line change
@@ -1310,40 +1310,6 @@
13101310
node-gyp "^8.2.0"
13111311
read-package-json-fast "^2.0.1"
13121312

1313-
"@oclif/core@^2.15.0":
1314-
version "2.15.0"
1315-
resolved "https://registry.yarnpkg.com/@oclif/core/-/core-2.15.0.tgz#f27797b30a77d13279fba88c1698fc34a0bd0d2a"
1316-
integrity sha512-fNEMG5DzJHhYmI3MgpByTvltBOMyFcnRIUMxbiz2ai8rhaYgaTHMG3Q38HcosfIvtw9nCjxpcQtC8MN8QtVCcA==
1317-
dependencies:
1318-
"@types/cli-progress" "^3.11.0"
1319-
ansi-escapes "^4.3.2"
1320-
ansi-styles "^4.3.0"
1321-
cardinal "^2.1.1"
1322-
chalk "^4.1.2"
1323-
clean-stack "^3.0.1"
1324-
cli-progress "^3.12.0"
1325-
debug "^4.3.4"
1326-
ejs "^3.1.8"
1327-
get-package-type "^0.1.0"
1328-
globby "^11.1.0"
1329-
hyperlinker "^1.0.0"
1330-
indent-string "^4.0.0"
1331-
is-wsl "^2.2.0"
1332-
js-yaml "^3.14.1"
1333-
natural-orderby "^2.0.3"
1334-
object-treeify "^1.1.33"
1335-
password-prompt "^1.1.2"
1336-
slice-ansi "^4.0.0"
1337-
string-width "^4.2.3"
1338-
strip-ansi "^6.0.1"
1339-
supports-color "^8.1.1"
1340-
supports-hyperlinks "^2.2.0"
1341-
ts-node "^10.9.1"
1342-
tslib "^2.5.0"
1343-
widest-line "^3.1.0"
1344-
wordwrap "^1.0.0"
1345-
wrap-ansi "^7.0.0"
1346-
13471313
"@oclif/core@^3.16.0", "@oclif/core@^3.18.1", "@oclif/core@^3.18.2", "@oclif/core@^3.19.2":
13481314
version "3.19.2"
13491315
resolved "https://registry.yarnpkg.com/@oclif/core/-/core-3.19.2.tgz#1672061e7309f0048f9f9991607b303a9e5082fc"
@@ -1377,12 +1343,12 @@
13771343
wordwrap "^1.0.0"
13781344
wrap-ansi "^7.0.0"
13791345

1380-
"@oclif/plugin-help@^5.2.20":
1381-
version "5.2.20"
1382-
resolved "https://registry.yarnpkg.com/@oclif/plugin-help/-/plugin-help-5.2.20.tgz#4035a0ac231f95fb8e334da342175e3ca00f6abc"
1383-
integrity sha512-u+GXX/KAGL9S10LxAwNUaWdzbEBARJ92ogmM7g3gDVud2HioCmvWQCDohNRVZ9GYV9oKwZ/M8xwd6a1d95rEKQ==
1346+
"@oclif/plugin-help@^6":
1347+
version "6.0.14"
1348+
resolved "https://registry.yarnpkg.com/@oclif/plugin-help/-/plugin-help-6.0.14.tgz#9e572fb8394e9cbe2da3465c029eb9521f9c9198"
1349+
integrity sha512-orKUsV8hYtbnPf1W7y5wnnR2X6UFOl7hqTh/Uj4E+3ju/8TnvpavZXFA2UQecKWcfdbYjuTwxuZdeh8vBWFLIQ==
13841350
dependencies:
1385-
"@oclif/core" "^2.15.0"
1351+
"@oclif/core" "^3.19.2"
13861352

13871353
"@oclif/plugin-help@^6.0.12":
13881354
version "6.0.12"
@@ -2110,7 +2076,7 @@
21102076
resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.3.11.tgz#e95050bf79a932cb7305dd130254ccdf9bde671c"
21112077
integrity sha512-qQR1dr2rGIHYlJulmr8Ioq3De0Le9E4MJ5AiaeAETJJpndT1uUNHsGFK3L/UIu+rbkQSdj8J/w2bCsBZc/Y5fQ==
21122078

2113-
"@types/cli-progress@^3.11.0", "@types/cli-progress@^3.11.5":
2079+
"@types/cli-progress@^3.11.5":
21142080
version "3.11.5"
21152081
resolved "https://registry.yarnpkg.com/@types/cli-progress/-/cli-progress-3.11.5.tgz#9518c745e78557efda057e3f96a5990c717268c3"
21162082
integrity sha512-D4PbNRbviKyppS5ivBGyFO29POlySLmA2HyUFE4p5QGazAMM3CwkKWcvTl8gvElSuxRh6FPKL8XmidX873ou4g==
@@ -4629,10 +4595,10 @@ humanize-ms@^1.2.1:
46294595
dependencies:
46304596
ms "^2.0.0"
46314597

4632-
husky@^8.0.3:
4633-
version "8.0.3"
4634-
resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.3.tgz#4936d7212e46d1dea28fef29bb3a108872cd9184"
4635-
integrity sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==
4598+
husky@^9:
4599+
version "9.0.11"
4600+
resolved "https://registry.yarnpkg.com/husky/-/husky-9.0.11.tgz#fc91df4c756050de41b3e478b2158b87c1e79af9"
4601+
integrity sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw==
46364602

46374603
hyperlinker@^1.0.0:
46384604
version "1.0.0"
@@ -5684,7 +5650,7 @@ [email protected]:
56845650
is-plain-obj "^1.1.0"
56855651
kind-of "^6.0.3"
56865652

5687-
minimist@^1.2.0, minimist@^1.2.6:
5653+
minimist@^1.2.0, minimist@^1.2.3, minimist@^1.2.6:
56885654
version "1.2.8"
56895655
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c"
56905656
integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==
@@ -6380,7 +6346,7 @@ pascal-case@^3.1.2:
63806346
no-case "^3.0.4"
63816347
tslib "^2.0.3"
63826348

6383-
password-prompt@^1.1.2, password-prompt@^1.1.3:
6349+
password-prompt@^1.1.3:
63846350
version "1.1.3"
63856351
resolved "https://registry.yarnpkg.com/password-prompt/-/password-prompt-1.1.3.tgz#05e539f4e7ca4d6c865d479313f10eb9db63ee5f"
63866352
integrity sha512-HkrjG2aJlvF0t2BMH0e2LB/EHf3Lcq3fNMzy4GYHcQblAvOl+QQji1Lx7WRBMqpVK8p+KR7bCg7oqAMXtdgqyw==
@@ -6977,6 +6943,14 @@ shelljs@^0.8.5:
69776943
interpret "^1.0.0"
69786944
rechoir "^0.6.2"
69796945

6946+
shx@^0.3.4:
6947+
version "0.3.4"
6948+
resolved "https://registry.yarnpkg.com/shx/-/shx-0.3.4.tgz#74289230b4b663979167f94e1935901406e40f02"
6949+
integrity sha512-N6A9MLVqjxZYcVn8hLmtneQWIJtp8IKzMP4eMnx+nqkvXoqinUPCbUFLp2UcWTEIUONhlk0ewxr/jaVGlc+J+g==
6950+
dependencies:
6951+
minimist "^1.2.3"
6952+
shelljs "^0.8.5"
6953+
69806954
side-channel@^1.0.4:
69816955
version "1.0.4"
69826956
resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf"
@@ -7445,7 +7419,7 @@ ts-json-schema-generator@^1.5.0:
74457419
safe-stable-stringify "^2.4.3"
74467420
typescript "~5.3.2"
74477421

7448-
ts-node@^10.9.1, ts-node@^10.9.2:
7422+
ts-node@^10.9.2:
74497423
version "10.9.2"
74507424
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.9.2.tgz#70f021c9e185bccdca820e26dc413805c101c71f"
74517425
integrity sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==

0 commit comments

Comments
 (0)