|
7 | 7 | "url": "https://github.com/MetaMask/auto-changelog.git" |
8 | 8 | }, |
9 | 9 | "license": "(MIT OR Apache-2.0)", |
10 | | - "main": "dist/index.js", |
| 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", |
11 | 27 | "bin": "dist/cli.js", |
12 | 28 | "files": [ |
13 | | - "dist/" |
| 29 | + "dist" |
14 | 30 | ], |
15 | 31 | "scripts": { |
16 | | - "build": "tsc --project tsconfig.build.json", |
17 | | - "build:clean": "rimraf dist && yarn build", |
| 32 | + "build": "ts-bridge --project tsconfig.build.json --clean", |
18 | 33 | "changelog": "node dist/cli.js", |
19 | 34 | "lint": "yarn lint:eslint && yarn lint:misc --check", |
20 | 35 | "lint:eslint": "eslint . --cache --ext js,ts", |
21 | 36 | "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", |
22 | 37 | "lint:misc": "prettier '**/*.json' '**/*.md' '!CHANGELOG.md' '**/*.yml' '!.yarnrc.yml' --ignore-path .gitignore", |
23 | 38 | "prepack": "./scripts/prepack.sh", |
24 | | - "test": "jest", |
| 39 | + "test": "jest && attw --pack", |
25 | 40 | "test:watch": "jest --watch" |
26 | 41 | }, |
27 | 42 | "dependencies": { |
|
31 | 46 | "yargs": "^17.0.1" |
32 | 47 | }, |
33 | 48 | "devDependencies": { |
| 49 | + "@arethetypeswrong/cli": "^0.15.3", |
34 | 50 | "@lavamoat/allow-scripts": "^2.1.0", |
35 | 51 | "@metamask/eslint-config": "^11.1.0", |
36 | 52 | "@metamask/eslint-config-jest": "^11.1.0", |
37 | 53 | "@metamask/eslint-config-nodejs": "^11.1.0", |
38 | 54 | "@metamask/eslint-config-typescript": "^11.1.0", |
| 55 | + "@ts-bridge/cli": "^0.6.3", |
39 | 56 | "@types/cross-spawn": "^6.0.2", |
40 | 57 | "@types/diff": "^5.0.0", |
41 | 58 | "@types/jest": "^26.0.23", |
|
0 commit comments