|
7 | 7 | "url": "https://github.com/MetaMask/smart-transactions-controller.git" |
8 | 8 | }, |
9 | 9 | "license": "SEE LICENSE IN LICENSE", |
10 | | - "main": "dist/index.js", |
11 | | - "types": "dist/index.d.ts", |
| 10 | + "sideEffects": false, |
| 11 | + "exports": { |
| 12 | + ".": { |
| 13 | + "import": { |
| 14 | + "types": "./dist/index.d.mts", |
| 15 | + "default": "./dist/index.mjs" |
| 16 | + }, |
| 17 | + "require": { |
| 18 | + "types": "./dist/index.d.cts", |
| 19 | + "default": "./dist/index.cjs" |
| 20 | + } |
| 21 | + }, |
| 22 | + "./package.json": "./package.json" |
| 23 | + }, |
| 24 | + "main": "./dist/index.cjs", |
| 25 | + "module": "./dist/index.mjs", |
| 26 | + "types": "./dist/index.d.cts", |
12 | 27 | "files": [ |
13 | | - "dist/" |
| 28 | + "dist" |
14 | 29 | ], |
15 | 30 | "scripts": { |
16 | | - "build": "tsc --project tsconfig.build.json", |
17 | | - "build:clean": "rm -rf dist && yarn build", |
18 | | - "build:link": "yarn build && cd dist && yarn link && rm -rf node_modules && cd ..", |
| 31 | + "build": "ts-bridge --project tsconfig.build.json --clean", |
19 | 32 | "lint": "yarn lint:eslint && yarn lint:misc --check && yarn lint:changelog", |
20 | 33 | "lint:changelog": "auto-changelog validate --prettier", |
21 | 34 | "lint:eslint": "eslint . --cache --ext js,ts", |
22 | 35 | "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write && yarn lint:changelog", |
23 | 36 | "lint:misc": "prettier '**/*.json' '**/*.md' '**/*.yml' '!.yarnrc.yml' --ignore-path .gitignore --no-error-on-unmatched-pattern", |
24 | 37 | "prepack": "./scripts/prepack.sh", |
25 | | - "test": "jest", |
| 38 | + "test": "jest && attw --pack", |
26 | 39 | "test:watch": "jest --watchAll" |
27 | 40 | }, |
28 | 41 | "dependencies": { |
|
42 | 55 | "lodash": "^4.17.21" |
43 | 56 | }, |
44 | 57 | "devDependencies": { |
| 58 | + "@arethetypeswrong/cli": "^0.18.2", |
45 | 59 | "@lavamoat/allow-scripts": "^3.2.1", |
46 | 60 | "@lavamoat/preinstall-always-fail": "^2.1.0", |
47 | 61 | "@metamask/auto-changelog": "^3.1.0", |
|
53 | 67 | "@metamask/json-rpc-engine": "^10.0.1", |
54 | 68 | "@metamask/network-controller": "^24.0.0", |
55 | 69 | "@metamask/transaction-controller": "^42.0.0", |
| 70 | + "@ts-bridge/cli": "^0.6.3", |
56 | 71 | "@types/jest": "^26.0.24", |
57 | 72 | "@types/lodash": "^4.14.194", |
58 | 73 | "@types/node": "^18.19.17", |
|
0 commit comments