|
1 | 1 | {
|
2 | 2 | "name": "babel-preset-proposal-typescript",
|
3 | 3 | "version": "2.2.0",
|
| 4 | + "type": "module", |
4 | 5 | "description": "Yet another Babel preset for TypeScript, only transforms proposals which TypeScript does not support now.",
|
5 | 6 | "repository": "git+https://github.com/rx-ts/babel-preset-proposal-typescript.git",
|
6 | 7 | "author": "JounQin <admin@1stg.me>",
|
7 | 8 | "license": "MIT",
|
| 9 | + "packageManager": "yarn@1.22.19", |
8 | 10 | "engines": {
|
9 | 11 | "node": ">=6.9.0"
|
10 | 12 | },
|
11 |
| - "main": "lib/cjs", |
12 |
| - "module": "lib/esm", |
13 |
| - "es2015": "lib/es2015", |
| 13 | + "main": "lib/index.cjs", |
| 14 | + "module": "lib/index.js", |
| 15 | + "exports": { |
| 16 | + "types": "./lib/index.d.ts", |
| 17 | + "es2015": "./lib/index.es2015.mjs", |
| 18 | + "fesm2015": "./lib/index.es2015.mjs", |
| 19 | + "import": "./lib/index.js", |
| 20 | + "require": "./lib/index.cjs" |
| 21 | + }, |
| 22 | + "es2015": "lib/index.es2015.mjs", |
| 23 | + "fesm2015": "lib/index.es2015.mjs", |
14 | 24 | "types": "lib",
|
15 | 25 | "files": [
|
16 | 26 | "lib",
|
|
27 | 37 | ],
|
28 | 38 | "scripts": {
|
29 | 39 | "build": "run-p build:*",
|
30 |
| - "build:r": "r", |
| 40 | + "build:r": "r -f cjs,es2015", |
31 | 41 | "build:ts": "tsc -p src",
|
32 | 42 | "lint": "run-p lint:*",
|
33 | 43 | "lint:es": "eslint . --cache -f friendly",
|
34 | 44 | "lint:tsc": "tsc -p src --noEmit",
|
35 | 45 | "prepare": "simple-git-hooks && yarn-deduplicate --strategy fewer || exit 0",
|
36 |
| - "prerelease": "npm run build", |
37 |
| - "pretest": "yarn build:r", |
38 |
| - "release": "clean-publish && changeset publish", |
39 |
| - "test": "jest" |
| 46 | + "prerelease": "yarn build", |
| 47 | + "release": "clean-pkg-json && changeset publish", |
| 48 | + "test": "node --experimental-vm-modules node_modules/jest/bin/jest" |
40 | 49 | },
|
41 | 50 | "peerDependencies": {
|
42 |
| - "@babel/core": "^7.14.1", |
43 |
| - "typescript": "^4.3.0" |
| 51 | + "@babel/core": "^7.15.0", |
| 52 | + "typescript": "^4.7.0" |
44 | 53 | },
|
45 | 54 | "dependencies": {
|
46 |
| - "@babel/helper-plugin-utils": "^7.14.5", |
47 |
| - "@babel/plugin-proposal-async-do-expressions": "^7.14.5", |
48 |
| - "@babel/plugin-proposal-class-properties": "^7.14.5", |
49 |
| - "@babel/plugin-proposal-class-static-block": "^7.14.5", |
50 |
| - "@babel/plugin-proposal-do-expressions": "^7.14.5", |
51 |
| - "@babel/plugin-proposal-function-bind": "^7.14.5", |
52 |
| - "@babel/plugin-proposal-function-sent": "^7.14.5", |
53 |
| - "@babel/plugin-proposal-json-strings": "^7.14.5", |
54 |
| - "@babel/plugin-proposal-optional-chaining": "^7.14.5", |
55 |
| - "@babel/plugin-proposal-partial-application": "^7.14.5", |
56 |
| - "@babel/plugin-proposal-pipeline-operator": "^7.14.5", |
57 |
| - "@babel/plugin-proposal-private-property-in-object": "^7.14.5", |
58 |
| - "@babel/plugin-proposal-record-and-tuple": "^7.14.5", |
59 |
| - "@babel/plugin-proposal-throw-expressions": "^7.14.5", |
60 |
| - "@babel/plugin-syntax-decorators": "^7.14.5", |
61 |
| - "@babel/plugin-syntax-typescript": "^7.14.5", |
62 |
| - "@bloomberg/record-tuple-polyfill": "^0.0.3", |
63 |
| - "compare-versions": "^3.6.0" |
| 55 | + "@babel/helper-plugin-utils": "^7.18.9", |
| 56 | + "@babel/plugin-proposal-async-do-expressions": "^7.18.6", |
| 57 | + "@babel/plugin-proposal-do-expressions": "^7.18.6", |
| 58 | + "@babel/plugin-proposal-function-bind": "^7.18.9", |
| 59 | + "@babel/plugin-proposal-function-sent": "^7.18.6", |
| 60 | + "@babel/plugin-proposal-json-strings": "^7.18.6", |
| 61 | + "@babel/plugin-proposal-optional-chaining": "^7.18.9", |
| 62 | + "@babel/plugin-proposal-partial-application": "^7.18.9", |
| 63 | + "@babel/plugin-proposal-pipeline-operator": "^7.18.9", |
| 64 | + "@babel/plugin-proposal-private-property-in-object": "^7.18.6", |
| 65 | + "@babel/plugin-proposal-record-and-tuple": "^7.18.6", |
| 66 | + "@babel/plugin-proposal-throw-expressions": "^7.18.6", |
| 67 | + "@babel/plugin-syntax-decorators": "^7.18.6", |
| 68 | + "@babel/plugin-syntax-typescript": "^7.18.6", |
| 69 | + "@bloomberg/record-tuple-polyfill": "^0.0.4", |
| 70 | + "compare-versions": "^4.1.3" |
64 | 71 | },
|
65 | 72 | "devDependencies": {
|
66 |
| - "@1stg/lib-config": "^3.0.0", |
67 |
| - "@changesets/changelog-github": "^0.4.0", |
68 |
| - "@changesets/cli": "^2.16.0", |
69 |
| - "@types/babel__core": "^7.1.14", |
70 |
| - "@types/jest": "^26.0.23", |
71 |
| - "clean-publish": "^2.2.0", |
72 |
| - "ts-node": "^10.0.0", |
73 |
| - "typescript": "^4.3.3" |
| 73 | + "@1stg/lib-config": "^10.1.1", |
| 74 | + "@changesets/changelog-github": "^0.4.6", |
| 75 | + "@changesets/cli": "^2.24.3", |
| 76 | + "@node-loader/babel": "^2.0.1", |
| 77 | + "@types/babel__core": "^7.1.19", |
| 78 | + "@types/jest": "^28.1.7", |
| 79 | + "@types/node": "^18.7.8", |
| 80 | + "clean-pkg-json": "^1.0.1", |
| 81 | + "core-dts": "^0.0.3", |
| 82 | + "jest": "^28.1.3", |
| 83 | + "ts-node": "^10.9.1", |
| 84 | + "typescript": "^4.7.4", |
| 85 | + "yarn-deduplicate": "^5.0.2" |
74 | 86 | },
|
75 | 87 | "resolutions": {
|
76 | 88 | "babel-preset-proposal-typescript": "link:.",
|
77 |
| - "prettier": "^2.3.1" |
| 89 | + "prettier": "^2.7.1" |
78 | 90 | }
|
79 | 91 | }
|
0 commit comments