|
50 | 50 | },
|
51 | 51 | "scripts": {
|
52 | 52 | "clean": "del-cli dist/ coverage/ *.log *.tmp *.bak *.tgz",
|
53 |
| - "build:cjs": "esbuild --bundle --format=cjs --outfile=dist/index.cjs --footer:js=\"module.exports = rateLimit;\" source/index.ts", |
| 53 | + "build:cjs": "esbuild --bundle --format=cjs --outfile=dist/index.cjs --footer:js=\"module.exports = rateLimit; module.exports.default = rateLimit; module.exports.rateLimit = rateLimit;\" source/index.ts", |
54 | 54 | "build:esm": "esbuild --bundle --format=esm --outfile=dist/index.mjs source/index.ts",
|
55 | 55 | "build:types": "dts-bundle-generator --out-file=dist/index.d.ts source/index.ts",
|
56 | 56 | "compile": "run-s clean build:*",
|
|
61 | 61 | "autofix:rest": "prettier --ignore-path .gitignore --ignore-unknown --write .",
|
62 | 62 | "autofix": "run-s autofix:*",
|
63 | 63 | "test:lib": "cross-env NODE_OPTIONS=--experimental-vm-modules jest",
|
64 |
| - "test:ext": "npm pack && cd test/external/ && bash run-all-tests", |
| 64 | + "test:ext": "cd test/external/ && bash run-all-tests", |
65 | 65 | "test": "run-s lint test:*",
|
66 | 66 | "pre-commit": "lint-staged",
|
67 | 67 | "prepare": "run-s compile && husky install config/husky"
|
|
73 | 73 | "@jest/globals": "^27.4.6",
|
74 | 74 | "@types/express": "^4.17.13",
|
75 | 75 | "@types/jest": "^27.4.0",
|
76 |
| - "@types/node": "^16.11.17", |
| 76 | + "@types/node": "^16.11.19", |
77 | 77 | "@types/supertest": "^2.0.11",
|
78 | 78 | "cross-env": "^7.0.3",
|
79 | 79 | "del-cli": "^4.0.1",
|
80 |
| - "dts-bundle-generator": "^6.3.0", |
81 |
| - "esbuild": "^0.14.10", |
| 80 | + "dts-bundle-generator": "^6.4.0", |
| 81 | + "esbuild": "^0.14.11", |
82 | 82 | "express": "^4.17.1",
|
83 | 83 | "husky": "^7.0.4",
|
84 | 84 | "jest": "^27.4.7",
|
85 |
| - "lint-staged": "^12.1.5", |
| 85 | + "lint-staged": "^12.1.7", |
86 | 86 | "npm-run-all": "^4.1.5",
|
87 |
| - "supertest": "^6.1.6", |
| 87 | + "supertest": "^6.2.1", |
88 | 88 | "ts-jest": "^27.1.1",
|
89 | 89 | "ts-node": "^10.4.0",
|
90 | 90 | "typescript": "^4.5.2",
|
|
0 commit comments