|
13 | 13 | "sideEffects": false, |
14 | 14 | "exports": { |
15 | 15 | ".": { |
16 | | - "types": "./dist/types/index.d.ts", |
17 | | - "import": "./dist/index.mjs", |
18 | | - "require": "./dist/index.js" |
| 16 | + "import": { |
| 17 | + "types": "./dist/index.d.mts", |
| 18 | + "default": "./dist/index.mjs" |
| 19 | + }, |
| 20 | + "require": { |
| 21 | + "types": "./dist/index.d.cts", |
| 22 | + "default": "./dist/index.cjs" |
| 23 | + } |
19 | 24 | }, |
20 | 25 | "./package.json": "./package.json" |
21 | 26 | }, |
22 | | - "main": "./dist/index.js", |
| 27 | + "main": "./dist/index.cjs", |
23 | 28 | "module": "./dist/index.mjs", |
24 | | - "types": "./dist/types/index.d.ts", |
| 29 | + "types": "./dist/index.d.cts", |
25 | 30 | "files": [ |
26 | 31 | "dist" |
27 | 32 | ], |
28 | 33 | "scripts": { |
29 | | - "build": "tsup --clean && yarn build:types", |
| 34 | + "build": "ts-bridge --project tsconfig.build.json --clean", |
30 | 35 | "build:docs": "typedoc", |
31 | | - "build:types": "tsc --project tsconfig.build.json", |
32 | 36 | "lint": "yarn lint:eslint && yarn lint:constraints && yarn lint:misc --check && yarn lint:dependencies --check && yarn lint:changelog", |
33 | 37 | "lint:changelog": "auto-changelog validate --prettier", |
34 | 38 | "lint:constraints": "yarn constraints", |
|
37 | 41 | "lint:fix": "yarn lint:eslint --fix && yarn lint:constraints --fix && yarn lint:misc --write && yarn lint:dependencies && yarn lint:changelog", |
38 | 42 | "lint:misc": "prettier '**/*.json' '**/*.md' '**/*.yml' '!.yarnrc.yml' --ignore-path .gitignore --no-error-on-unmatched-pattern", |
39 | 43 | "prepack": "./scripts/prepack.sh", |
40 | | - "test": "jest && jest-it-up", |
| 44 | + "test": "jest && jest-it-up && attw --pack", |
41 | 45 | "test:watch": "jest --watch" |
42 | 46 | }, |
43 | 47 | "devDependencies": { |
| 48 | + "@arethetypeswrong/cli": "^0.15.3", |
44 | 49 | "@lavamoat/allow-scripts": "^3.0.4", |
45 | 50 | "@lavamoat/preinstall-always-fail": "^2.0.0", |
46 | 51 | "@metamask/auto-changelog": "^3.4.3", |
47 | 52 | "@metamask/eslint-config": "^12.2.0", |
48 | 53 | "@metamask/eslint-config-jest": "^12.1.0", |
49 | 54 | "@metamask/eslint-config-nodejs": "^12.1.0", |
50 | 55 | "@metamask/eslint-config-typescript": "^12.1.0", |
| 56 | + "@ts-bridge/cli": "^0.1.4", |
| 57 | + "@ts-bridge/shims": "^0.1.1", |
51 | 58 | "@types/jest": "^28.1.6", |
52 | | - "@types/node": "^16", |
| 59 | + "@types/node": "^18.18", |
53 | 60 | "@typescript-eslint/eslint-plugin": "^5.43.0", |
54 | 61 | "@typescript-eslint/parser": "^5.43.0", |
55 | 62 | "@yarnpkg/types": "^4.0.0-rc.52", |
|
68 | 75 | "prettier-plugin-packagejson": "^2.3.0", |
69 | 76 | "ts-jest": "^28.0.7", |
70 | 77 | "ts-node": "^10.7.0", |
71 | | - "tsup": "^7.2.0", |
72 | 78 | "typedoc": "^0.23.15", |
73 | 79 | "typescript": "~4.8.4" |
74 | 80 | }, |
|
82 | 88 | }, |
83 | 89 | "lavamoat": { |
84 | 90 | "allowScripts": { |
85 | | - "@lavamoat/preinstall-always-fail": false, |
86 | | - "tsup>esbuild": true |
| 91 | + "@lavamoat/preinstall-always-fail": false |
87 | 92 | } |
88 | 93 | } |
89 | 94 | } |
0 commit comments