|
1 | 1 | { |
2 | 2 | "name": "import-sync", |
| 3 | + "type": "module", |
3 | 4 | "repository": { |
4 | 5 | "type": "git", |
5 | 6 | "url": "https://github.com/nktnet1/import-sync" |
6 | 7 | }, |
7 | | - "version": "2.2.3", |
| 8 | + "version": "2.2.4-beta.5", |
8 | 9 | "files": [ |
9 | 10 | "dist" |
10 | 11 | ], |
11 | | - "main": "dist/cjs/index.js", |
12 | | - "module": "dist/esm/index.js", |
13 | 12 | "scripts": { |
14 | 13 | "test": "jest", |
15 | 14 | "tc": "jest --coverage", |
16 | 15 | "lint": "eslint --fix './**/*.ts'", |
17 | 16 | "tsc": "tsc --noEmit", |
18 | | - "build": "rm -rf dist && npm run build:esm && npm run build:cjs", |
19 | | - "build:esm": "tsc", |
20 | | - "build:cjs": "tsc --module CommonJS --outDir dist/cjs", |
| 17 | + "build": "tsdown", |
21 | 18 | "prepublishOnly": "npm run build", |
22 | 19 | "prepare": "husky" |
23 | 20 | }, |
|
42 | 39 | "license": "MIT", |
43 | 40 | "description": "Synchronously import dynamic ECMAScript Modules similar to CommonJS require. Basic wrapper around esm for compatibility with both ESM and CJS projects in NodeJS.", |
44 | 41 | "devDependencies": { |
45 | | - "@commitlint/cli": "^20.0.0", |
46 | | - "@commitlint/config-conventional": "^20.0.0", |
47 | | - "@eslint/eslintrc": "^3.3.1", |
48 | | - "@eslint/js": "^9.36.0", |
49 | | - "@types/httptoolkit__esm": "^3.3.0", |
| 42 | + "@commitlint/cli": "^20.5.0", |
| 43 | + "@commitlint/config-conventional": "^20.5.0", |
| 44 | + "@eslint/eslintrc": "^3.3.5", |
| 45 | + "@eslint/js": "^10.0.1", |
| 46 | + "@jest/globals": "^30.3.0", |
50 | 47 | "@types/jest": "^30.0.0", |
51 | | - "@types/node": "^24.5.2", |
52 | | - "@typescript-eslint/eslint-plugin": "^8.44.1", |
53 | | - "@typescript-eslint/parser": "^8.44.1", |
54 | | - "eslint": "^9.36.0", |
| 48 | + "@types/node": "^25.6.0", |
| 49 | + "@typescript-eslint/eslint-plugin": "^8.58.2", |
| 50 | + "@typescript-eslint/parser": "^8.58.2", |
| 51 | + "eslint": "^10.2.1", |
55 | 52 | "eslint-config-prettier": "^10.1.8", |
56 | 53 | "eslint-import-resolver-typescript": "^4.4.4", |
57 | 54 | "eslint-plugin-import": "^2.32.0", |
58 | | - "eslint-plugin-jest": "^29.0.1", |
59 | | - "eslint-plugin-prettier": "^5.5.4", |
60 | | - "eslint-plugin-react-refresh": "^0.4.22", |
61 | | - "globals": "^16.4.0", |
| 55 | + "eslint-plugin-prettier": "^5.5.5", |
| 56 | + "eslint-plugin-react-refresh": "^0.5.2", |
| 57 | + "globals": "^17.5.0", |
62 | 58 | "husky": "^9.1.7", |
63 | | - "jest": "^30.1.3", |
64 | | - "node-datachannel": "^0.29.0", |
| 59 | + "jest": "^30.3.0", |
| 60 | + "node-datachannel": "^0.32.2", |
65 | 61 | "node-fetch": "^3.3.2", |
66 | | - "ts-jest": "^29.4.4", |
| 62 | + "ts-jest": "^29.4.9", |
67 | 63 | "ts-node": "^10.9.2", |
68 | | - "typescript": "^5.9.2" |
| 64 | + "tsdown": "^0.21.9", |
| 65 | + "typescript": "^6.0.3" |
69 | 66 | }, |
70 | 67 | "dependencies": { |
71 | | - "@httptoolkit/esm": "^3.3.2" |
| 68 | + "esm-sync": "3.3.3" |
72 | 69 | }, |
73 | | - "packageManager": "pnpm@10.17.1" |
| 70 | + "packageManager": "pnpm@10.33.0", |
| 71 | + "main": "./dist/index.cjs", |
| 72 | + "module": "./dist/index.mjs", |
| 73 | + "types": "./dist/index.d.cts", |
| 74 | + "exports": { |
| 75 | + ".": "./dist/index.cjs", |
| 76 | + "./package.json": "./package.json" |
| 77 | + } |
74 | 78 | } |
0 commit comments