|
4 | 4 | "description": "Babel plugin for annotating automatically pure function calls.",
|
5 | 5 | "author": "Mateusz Burzyński <mateuszburzynski@gmail.com> (https://github.com/Andarist)",
|
6 | 6 | "license": "MIT",
|
7 |
| - "main": "lib/index.js", |
| 7 | + "engines": { |
| 8 | + "node": ">=18" |
| 9 | + }, |
| 10 | + "main": "dist/babel-plugin-annotate-pure-calls.cjs.js", |
| 11 | + "module": "dist/babel-plugin-annotate-pure-calls.esm.js", |
| 12 | + "exports": { |
| 13 | + ".": { |
| 14 | + "types": { |
| 15 | + "import": "./dist/babel-plugin-annotate-pure-calls.cjs.mjs", |
| 16 | + "default": "./dist/babel-plugin-annotate-pure-calls.cjs.js" |
| 17 | + }, |
| 18 | + "module": "./dist/babel-plugin-annotate-pure-calls.esm.js", |
| 19 | + "import": "./dist/babel-plugin-annotate-pure-calls.cjs.mjs", |
| 20 | + "default": "./dist/babel-plugin-annotate-pure-calls.cjs.js" |
| 21 | + }, |
| 22 | + "./package.json": "./package.json" |
| 23 | + }, |
8 | 24 | "files": [
|
9 |
| - "lib" |
| 25 | + "dist" |
10 | 26 | ],
|
11 | 27 | "repository": {
|
12 | 28 | "type": "git",
|
|
23 | 39 | "url": "https://github.com/Andarist/babel-plugin-annotate-pure-calls/issues"
|
24 | 40 | },
|
25 | 41 | "homepage": "https://github.com/Andarist/babel-plugin-annotate-pure-calls#readme",
|
26 |
| - "dependencies": {}, |
27 | 42 | "peerDependencies": {
|
28 | 43 | "@babel/core": "^7.0.0"
|
29 | 44 | },
|
|
32 | 47 | "@babel/core": "^7.1.0",
|
33 | 48 | "@babel/plugin-transform-modules-commonjs": "^7.1.0",
|
34 | 49 | "@babel/preset-env": "^7.1.0",
|
| 50 | + "@preconstruct/cli": "^2.8.10", |
35 | 51 | "babel-plugin-tester": "^5.4.0",
|
36 | 52 | "husky": "^0.14.3",
|
37 | 53 | "jest": "^23.1.0",
|
38 | 54 | "lint-staged": "^7.1.3",
|
39 | 55 | "prettier": "^1.13.5"
|
40 | 56 | },
|
41 | 57 | "scripts": {
|
42 |
| - "build": "babel src --out-dir lib", |
| 58 | + "build": "preconstruct build", |
43 | 59 | "pretest": "npm run build",
|
44 | 60 | "test": "jest",
|
45 | 61 | "precommit": "lint-staged",
|
|
56 | 72 | "semi": false,
|
57 | 73 | "trailingComma": "all",
|
58 | 74 | "proseWrap": "always"
|
| 75 | + }, |
| 76 | + "preconstruct": { |
| 77 | + "exports": { |
| 78 | + "importConditionDefaultExport": "default" |
| 79 | + }, |
| 80 | + "___experimentalFlags_WILL_CHANGE_IN_PATCH": { |
| 81 | + "importsConditions": true |
| 82 | + } |
59 | 83 | }
|
60 | 84 | }
|
0 commit comments