|
6 | 6 | "license": "MIT",
|
7 | 7 | "types": "dist/arrayInit.d.ts",
|
8 | 8 | "main": "dist/arrayInit.js",
|
9 |
| - "module": "dist-esm/arrayInit.js", |
| 9 | + "module": "dist-esm/arrayInit.mjs", |
| 10 | + "exports": { |
| 11 | + "import": "./dist-esm/arrayInit.mjs", |
| 12 | + "require": "./dist/arrayInit.js" |
| 13 | + }, |
10 | 14 | "keywords": [
|
11 | 15 | "array",
|
12 | 16 | "array helper",
|
|
15 | 19 | "array initialization"
|
16 | 20 | ],
|
17 | 21 | "scripts": {
|
18 |
| - "build:dist": "rimraf dist && tsc && copyfiles -u 1 src/**/*.d.ts dist", |
19 |
| - "build:dist-esm": "rimraf dist-esm && tsc -p tsconfig.esm.json", |
20 |
| - "build": "pnpm i && pnpm run build:dist && pnpm run build:dist-esm", |
21 |
| - "bump": "npm run-script precommit && npm version patch", |
| 22 | + "build:cjs": "rimraf dist && tsc && copyfiles -u 1 src/**/*.d.ts dist", |
| 23 | + "build:esm": "rimraf dist-esm && tsc -p tsconfig.esm.json && node -e \"const fs=require('fs'),path=require('path'),dir='dist-esm';fs.readdirSync(dir).forEach(file=>{if(path.extname(file)==='.js'){const old=path.join(dir,file),newer=path.join(dir,file.replace('.js','.mjs'));fs.renameSync(old,newer)}})\"", |
| 24 | + "build": "concurrently pnpm:build:cjs pnpm:build:esm", |
22 | 25 | "docs": "rimraf docs && typedoc --options typedoc.json --readme none",
|
23 | 26 | "lint": "eslint src/**/*.ts",
|
24 |
| - "precommit": "pnpm i && run-p lint test && run-p build:* && npm run-script validate && git status -s", |
25 |
| - "prepublishOnly": "npm run-script build && run-p validate test", |
26 |
| - "preversion": "run-p lint test", |
27 |
| - "postversion": "git push && git push --tags && npm run-script docs && git add -A && git commit -m \"Updated docs.\" docs && git push", |
28 |
| - "test": "mocha -r ts-node/register tests/**/*.ts", |
29 |
| - "validate": "node ./.build/validate-package.js" |
| 27 | + "precommit": "concurrently pnpm:lint pnpm:test && pnpm run build", |
| 28 | + "prepublishOnly": "pnpm run build && pnpm test", |
| 29 | + "preversion": "concurrently pnpm:lint pnpm:test", |
| 30 | + "postversion": "git push && git push --tags && pnpm run docs && git add -A && git commit -m \"Updated docs.\" docs && git push", |
| 31 | + "test": "mocha -r ts-node/register tests/**/*.ts" |
30 | 32 | },
|
31 | 33 | "repository": {
|
32 | 34 | "type": "git",
|
|
37 | 39 | },
|
38 | 40 | "homepage": "https://github.com/tsdotnet/array-init#readme",
|
39 | 41 | "devDependencies": {
|
| 42 | + "@eslint/js": "^9.33.0", |
40 | 43 | "@types/chai": "^5.2.2",
|
41 | 44 | "@types/mocha": "^10.0.10",
|
42 | 45 | "@types/node": "^24.3.0",
|
43 |
| - "@typescript-eslint/eslint-plugin": "^8.39.1", |
44 |
| - "@typescript-eslint/parser": "^8.39.1", |
45 | 46 | "chai": "^5.2.1",
|
| 47 | + "concurrently": "^9.2.0", |
46 | 48 | "copyfiles": "^2.4.1",
|
47 | 49 | "eslint": "^9.33.0",
|
48 |
| - "eslint-config-typescript": "^3.0.0", |
49 |
| - "eslint-plugin-import": "^2.32.0", |
50 |
| - "eslint-plugin-node": "^11.1.0", |
51 |
| - "eslint-plugin-promise": "^7.2.1", |
52 | 50 | "mocha": "^11.7.1",
|
53 |
| - "npm-run-all": "^4.1.5", |
54 |
| - "nyc": "^17.1.0", |
55 | 51 | "rimraf": "^6.0.1",
|
56 | 52 | "ts-node": "^10.9.2",
|
57 | 53 | "typedoc": "^0.28.10",
|
58 |
| - "typescript": "^5.9.2" |
| 54 | + "typescript": "^5.9.2", |
| 55 | + "typescript-eslint": "^8.39.1" |
59 | 56 | },
|
60 | 57 | "pnpm": {
|
61 | 58 | "overrides": {
|
|
0 commit comments