-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
51 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,3 @@ jobs: | |
secrets: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
GIT_TOKEN: ${{ secrets.GIT_TOKEN }} | ||
with: | ||
checkTest: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,30 +18,6 @@ | |
], | ||
"author": "fengmk2 <[email protected]> (https://github.com/fengmk2)", | ||
"homepage": "https://github.com/node-modules/urllib", | ||
"type": "module", | ||
"tshy": { | ||
"exports": { | ||
".": "./src/index.ts", | ||
"./package.json": "./package.json" | ||
} | ||
}, | ||
"exports": { | ||
".": { | ||
"import": { | ||
"types": "./dist/esm/index.d.ts", | ||
"default": "./dist/esm/index.js" | ||
}, | ||
"require": { | ||
"types": "./dist/commonjs/index.d.ts", | ||
"default": "./dist/commonjs/index.js" | ||
} | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"files": [ | ||
"dist", | ||
"src" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/node-modules/urllib.git" | ||
|
@@ -62,6 +38,7 @@ | |
"test": "npm run lint && vitest run", | ||
"test-keepalive": "cross-env TEST_KEEPALIVE_COUNT=50 vitest run --test-timeout 180000 keep-alive-header.test.ts", | ||
"cov": "vitest run --coverage", | ||
"preci": "node scripts/pre_test.js", | ||
"ci": "npm run lint && npm run cov && node scripts/build_test.js", | ||
"contributor": "git-contributor", | ||
"clean": "rm -rf dist", | ||
|
@@ -91,7 +68,7 @@ | |
"@types/qs": "^6.9.7", | ||
"@types/selfsigned": "^2.0.1", | ||
"@types/tar-stream": "^2.2.2", | ||
"@vitest/coverage-v8": "^0.32.0", | ||
"@vitest/coverage-v8": "beta", | ||
"busboy": "^1.6.0", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^8.25.0", | ||
|
@@ -101,14 +78,39 @@ | |
"proxy": "^1.0.2", | ||
"selfsigned": "^2.0.1", | ||
"tar-stream": "^2.2.0", | ||
"tshy": "^1.0.0-3", | ||
"tshy": "^1.0.0", | ||
"tshy-after": "^1.0.0", | ||
"typescript": "^5.0.4", | ||
"vitest": "^0.32.0" | ||
"vitest": "beta" | ||
}, | ||
"engines": { | ||
"node": ">= 14.19.3" | ||
}, | ||
"license": "MIT", | ||
"types": "./dist/commonjs/index.d.ts" | ||
"type": "module", | ||
"tshy": { | ||
"exports": { | ||
".": "./src/index.ts", | ||
"./package.json": "./package.json" | ||
} | ||
}, | ||
"exports": { | ||
".": { | ||
"import": { | ||
"types": "./dist/esm/index.d.ts", | ||
"default": "./dist/esm/index.js" | ||
}, | ||
"require": { | ||
"types": "./dist/commonjs/index.d.ts", | ||
"default": "./dist/commonjs/index.js" | ||
} | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"files": [ | ||
"dist", | ||
"src" | ||
], | ||
"types": "./dist/commonjs/index.d.ts", | ||
"main": "./dist/commonjs/index.js" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { execSync } from 'child_process'; | ||
|
||
function main() { | ||
if (!process.version.startsWith('v14.')) { | ||
return; | ||
} | ||
console.log(`use vitest@^0.32.0 on Node.js ${process.version}`); | ||
const cwd = process.cwd() | ||
execSync('npm i vitest@^0.32.0 @vitest/coverage-v8@^0.32.0', { | ||
cwd, | ||
stdio: [ 'inherit', 'inherit', 'inherit' ], | ||
}); | ||
} | ||
|
||
main(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters