2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-14 18:42:33 +03:00

Fix/typescript tests (#5375)

* chore(ci): Add release-it script;

* chore(ci): add `release:no-npm` script to release the package without making an npm release;

* fix(test): fixed `d.ts` typings;
refactor(test): refactor typescript tests;
This commit is contained in:
Dmitriy Mozgovoy
2022-12-14 22:49:49 +02:00
committed by GitHub
parent f2547d0e03
commit 7a2f901f42
11 changed files with 308 additions and 149 deletions
+4 -2
View File
@@ -23,7 +23,7 @@
"type": "module",
"types": "index.d.ts",
"scripts": {
"test": "npm run test:eslint && npm run test:mocha && npm run test:karma && npm run test:exports && npm run test:dtslint",
"test": "npm run test:eslint && npm run test:mocha && npm run test:karma && npm run test:dtslint && npm run test:exports",
"test:eslint": "node bin/ssl_hotfix.js eslint lib/**/*.js",
"test:dtslint": "node bin/ssl_hotfix.js dtslint",
"test:mocha": "node bin/ssl_hotfix.js mocha test/unit/**/*.js --timeout 30000 --exit",
@@ -42,9 +42,11 @@
"fix": "eslint --fix lib/**/*.js",
"prepare": "husky install && npm run prepare:hooks",
"prepare:hooks": "npx husky add .husky/commit-msg \"npx commitlint --edit $1\"",
"release:dry": "release-it --dry-run",
"release:dry": "release-it --dry-run --no-npm",
"release:info": "release-it --release-version",
"prerelease:no-npm": "release-it --preRelease=beta --no-npm",
"prerelease": "release-it --preRelease=beta",
"release:no-npm": "release-it --no-npm",
"release": "release-it"
},
"repository": {