Skip to content

Commit 03f6274

Browse files
committed
fix: fix bugs with range validation and npm token usage
1 parent 9a6bd30 commit 03f6274

File tree

7 files changed

+1098
-466
lines changed

7 files changed

+1098
-466
lines changed

.vscode/launch.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "test:debug <file>",
6+
"port": 9229,
7+
"request": "attach",
8+
"skipFiles": ["<node_internals>/**"],
9+
"type": "node",
10+
"preLaunchTask": "test:debug <file>"
11+
}
12+
]
13+
}

.vscode/tasks.json

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "shell",
6+
"options": {
7+
"shell": {
8+
"executable": "bash",
9+
"args": ["-c", "-l"]
10+
}
11+
},
12+
"command": "pnpm",
13+
"isBackground": false,
14+
"group": "test",
15+
"presentation": {
16+
"panel": "dedicated",
17+
"clear": true
18+
},
19+
"label": "test <file>",
20+
"args": ["tc", "test", "${file}"]
21+
},
22+
{
23+
"type": "shell",
24+
"options": {
25+
"shell": {
26+
"executable": "bash",
27+
"args": ["-c", "-l"]
28+
}
29+
},
30+
"command": "pnpm",
31+
"isBackground": false,
32+
"group": "test",
33+
"presentation": {
34+
"panel": "dedicated",
35+
"clear": true
36+
},
37+
"label": "test:watch <file>",
38+
"args": ["tc", "test", "--watch", "${file}"]
39+
},
40+
{
41+
"type": "shell",
42+
"options": {
43+
"shell": {
44+
"executable": "bash",
45+
"args": ["-c", "-l"]
46+
}
47+
},
48+
"command": "pnpm",
49+
"isBackground": false,
50+
"group": "test",
51+
"presentation": {
52+
"panel": "dedicated",
53+
"clear": true
54+
},
55+
"label": "test:debug <file>",
56+
"args": ["tc", "test", "-n", "inspect-brk", "${file}"]
57+
}
58+
]
59+
}

package.json

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"scripts": {
77
"tc": "toolchain",
88
"toolchain": "toolchain",
9+
"start": "babel-node --extensions .ts src/cli/npm-fetch-changelog.ts",
910
"test": "toolchain test",
10-
"prepublishOnly": "echo This package is meant to be published by semantic-release from the dist build directory. && exit 1",
11-
"start": "babel-node --extensions .ts src/cli/npm-fetch-changelog.ts"
11+
"prepublishOnly": "echo This package is meant to be published by semantic-release from the dist build directory. && exit 1"
1212
},
1313
"repository": {
1414
"type": "git",
@@ -33,25 +33,30 @@
3333
"devDependencies": {
3434
"@babel/eslint-parser": "^7.12.13",
3535
"@babel/node": "^7.2.2",
36-
"@babel/plugin-syntax-flow": "^7.14.5",
3736
"@babel/plugin-transform-react-jsx": "^7.14.9",
38-
"@jcoreio/toolchain": "^3.2.0",
39-
"@jcoreio/toolchain-circle": "^3.2.0",
40-
"@jcoreio/toolchain-esnext": "^3.2.0",
41-
"@jcoreio/toolchain-semantic-release": "^3.2.0",
42-
"@jcoreio/toolchain-typescript": "^3.2.0",
37+
"@jcoreio/eslint-plugin-implicit-dependencies": "^1.0.2",
38+
"@jcoreio/toolchain": "^3.9.8",
39+
"@jcoreio/toolchain-circle": "^3.9.8",
40+
"@jcoreio/toolchain-esnext": "^3.9.8",
41+
"@jcoreio/toolchain-mocha": "^3.9.8",
42+
"@jcoreio/toolchain-semantic-release": "^3.9.8",
43+
"@jcoreio/toolchain-typescript": "^3.9.8",
44+
"@types/chai": "^4.0.0",
4345
"@types/debug": "^4.1.11",
4446
"@types/fs-extra": "^11.0.4",
47+
"@types/mocha": "^10.0.6",
4548
"@types/npm-registry-fetch": "^8.0.7",
4649
"@types/semver": "^7.5.5",
47-
"@types/yargs": "^13.0.0",
50+
"@types/yargs": "^17.0.32",
4851
"@typescript-eslint/eslint-plugin": "^5.60.0",
4952
"@typescript-eslint/parser": "^5.60.0",
53+
"chai": "^4.0.0",
5054
"copy": "^0.3.2",
5155
"cross-env": "^7.0.3",
5256
"eslint": "^8.43.0",
5357
"eslint-config-prettier": "^7.2.0",
5458
"eslint-plugin-flowtype": "^8.0.3",
59+
"mocha": "^10.2.0",
5560
"rimraf": "^3.0.2",
5661
"typescript": "^5.1.0"
5762
},
@@ -65,7 +70,7 @@
6570
"octokit": "^3.1.1",
6671
"promisify-child-process": "^4.1.2",
6772
"semver": "^7.5.4",
68-
"yargs": "^13.2.2"
73+
"yargs": "^17.7.2"
6974
},
7075
"bin": {
7176
"npm-fetch-changelog": "./dist/cli/npm-fetch-changelog.js",
@@ -77,5 +82,13 @@
7782
"main": "dist/index.js",
7883
"module": "dist/index.mjs",
7984
"types": "dist/index.d.ts",
80-
"packageManager": "pnpm@8.3.1"
85+
"packageManager": "pnpm@8.11.0",
86+
"exports": {
87+
"./package.json": "./package.json",
88+
".": {
89+
"types": "./dist/index.d.ts",
90+
"import": "./dist/index.mjs",
91+
"default": "./dist/index.js"
92+
}
93+
}
8194
}

0 commit comments

Comments
 (0)