|
3 | 3 | "version": "0.0.0-semantically-released",
|
4 | 4 | "description": "Simple and complete Preact DOM testing utilities that encourage good testing practices.",
|
5 | 5 | "main": "dist/cjs/index.js",
|
6 |
| - "module": "dist/esm/index.js", |
| 6 | + "module": "dist/esm/index.mjs", |
7 | 7 | "types": "types/index.d.ts",
|
8 | 8 | "exports": {
|
9 | 9 | ".": {
|
10 | 10 | "types": "./types/index.d.ts",
|
11 |
| - "browser": "./dist/esm/index.js", |
| 11 | + "browser": "./dist/esm/index.mjs", |
12 | 12 | "import": "./dist/esm/index.mjs",
|
13 | 13 | "require": "./dist/cjs/index.js"
|
14 | 14 | },
|
15 | 15 | "./pure": {
|
16 | 16 | "types": "./pure.d.ts",
|
17 |
| - "browser": "./dist/esm/pure.js", |
| 17 | + "browser": "./dist/esm/pure.mjs", |
18 | 18 | "import": "./dist/esm/pure.mjs",
|
19 | 19 | "require": "./dist/cjs/pure.js"
|
20 | 20 | }
|
|
55 | 55 | "toc": "doctoc README.md",
|
56 | 56 | "lint": "eslint src/**/*.js --fix",
|
57 | 57 | "clean": "rimraf dist",
|
58 |
| - "build": "npm run build:cjs && npm run build:esm && npm run copy:mjs", |
| 58 | + "build": "npm run build:cjs && npm run build:esm", |
59 | 59 | "build:cjs": "babel src --out-dir dist/cjs --config-file ./.babelrc --ignore '**/__tests__/**,**/__mocks__/**'",
|
60 |
| - "build:esm": "babel src --no-babelrc --out-dir dist/esm --config-file ./.babelrc.esm.json --ignore '**/__tests__/**,**/__mocks__/**'", |
61 |
| - "copy:mjs": "cp ./dist/esm/fire-event.js ./dist/esm/fire-event.mjs && cp ./dist/esm/pure.js ./dist/esm/pure.mjs && cp ./dist/esm/index.js ./dist/esm/index.mjs", |
| 60 | + "build:esm": "babel src --no-babelrc --out-file-extension .mjs --out-dir dist/esm --config-file ./.babelrc.esm.json --ignore '**/__tests__/**,**/__mocks__/**'", |
62 | 61 | "test": "jest src/__tests__ ",
|
63 | 62 | "test:watch": "npm test --watch",
|
64 | 63 | "test:update": "npm test --updateSnapshot --coverage",
|
|
0 commit comments