|
30 | 30 | "type": "git",
|
31 | 31 | "url": "git@github.com:yahoo/react-intl.git"
|
32 | 32 | },
|
33 |
| - "main": "./dist/index.js", |
34 |
| - "module": "./lib/index.js", |
| 33 | + "main": "./dist/index", |
35 | 34 | "types": "./dist/index.d.ts",
|
| 35 | + "type": "module", |
36 | 36 | "browserify-shim": {
|
37 | 37 | "react": "global:React"
|
38 | 38 | },
|
39 | 39 | "dependencies": {
|
40 |
| - "@formatjs/intl-relativetimeformat": "^2.5.1", |
| 40 | + "@formatjs/intl-relativetimeformat": "^2.5.2", |
41 | 41 | "@types/hoist-non-react-statics": "^3.3.1",
|
42 | 42 | "@types/invariant": "^2.2.30",
|
43 | 43 | "@types/react": "^16.0.0",
|
44 | 44 | "hoist-non-react-statics": "^3.3.0",
|
45 |
| - "intl-format-cache": "^4.1.5", |
46 |
| - "intl-locales-supported": "^1.4.2", |
47 |
| - "intl-messageformat": "^6.0.2", |
48 |
| - "intl-messageformat-parser": "^3.0.1", |
| 45 | + "intl-format-cache": "^4.1.6", |
| 46 | + "intl-locales-supported": "^1.4.3", |
| 47 | + "intl-messageformat": "^6.0.3", |
| 48 | + "intl-messageformat-parser": "^3.0.2", |
49 | 49 | "invariant": "^2.1.1",
|
50 | 50 | "react": "^16.3.0",
|
51 | 51 | "shallow-equal": "^1.1.0"
|
|
68 | 68 | "@typescript-eslint/eslint-plugin": "^1.13.0",
|
69 | 69 | "@typescript-eslint/parser": "^1.13.0",
|
70 | 70 | "babel-jest": "^24.8.0",
|
71 |
| - "babel-plugin-react-intl": "^4.1.5", |
| 71 | + "babel-plugin-react-intl": "^4.1.6", |
72 | 72 | "babel-plugin-transform-member-expression-literals": "^6.9.4",
|
73 | 73 | "babel-plugin-transform-property-literals": "^6.9.4",
|
74 | 74 | "babel-plugin-transform-react-remove-prop-types": "^0.4.18",
|
|
99 | 99 | "react-dom": "^16.8.6",
|
100 | 100 | "rimraf": "^2.4.2",
|
101 | 101 | "rollup": "^1.19.3",
|
| 102 | + "rollup-plugin-babel": "^4.3.3", |
102 | 103 | "rollup-plugin-commonjs": "^10.0.2",
|
103 | 104 | "rollup-plugin-node-resolve": "^5.2.0",
|
104 | 105 | "rollup-plugin-replace": "^2.0.0",
|
105 |
| - "rollup-plugin-typescript": "^1.0.1", |
| 106 | + "rollup-plugin-typescript2": "^0.22.1", |
106 | 107 | "rollup-plugin-uglify": "^6.0.0",
|
107 | 108 | "serialize-javascript": "^1.5.0",
|
108 | 109 | "standard-version": "^7.0.0",
|
|
118 | 119 | "build:dist:dev": "cross-env NODE_ENV=development rollup -c rollup.config.dist.js",
|
119 | 120 | "build:dist:prod": "cross-env NODE_ENV=production rollup -c rollup.config.dist.js",
|
120 | 121 | "build:dist": "npm run build:dist:dev && npm run build:dist:prod",
|
121 |
| - "build:lib": "tsc -p src/tsconfig.json && tsc -p src/tsconfig.cjs.json", |
| 122 | + "build:lib": "tsc -p src/tsconfig.json && npm run mjs && tsc -p src/tsconfig.cjs.json", |
122 | 123 | "build": "npm run build:lib && npm run build:dist",
|
123 | 124 | "clean": "rimraf coverage/ dist/ lib/ core.js core.d.ts",
|
124 | 125 | "example": "parcel examples/index.html",
|
125 | 126 | "format:fix": "prettier --write '**/*.{js,md,jsx,ts,tsx}'",
|
126 | 127 | "format": "prettier --check '**/*.{js,md,jsx,ts,tsx}'",
|
127 | 128 | "lint:fix": "eslint . --fix",
|
128 | 129 | "lint": "eslint .",
|
| 130 | + "mjs": "find ./dist -depth -name \"*.js\" -exec sh -c 'f=\"{}\"; mv -- \"$f\" \"${f%.js}.mjs\"' \\;", |
129 | 131 | "postchangelog": "npm run toc && npm run format:fix",
|
130 | 132 | "prerelease": "npm run clean && npm run build && npm run test:all",
|
131 | 133 | "release": "standard-version",
|
|
0 commit comments