|
4 | 4 | "description": "", |
5 | 5 | "keywords": [], |
6 | 6 | "license": "SEE LICENSE.MD IN ROOT", |
7 | | - "main": "dist/react-sandpack.umd.js", |
8 | | - "module": "dist/react-sandpack.es5.js", |
| 7 | + "main": "dist/react-sandpack.js", |
| 8 | + "browser": "dist/react-sandpack.umd.js", |
| 9 | + "module": "es/react-sandpack.js", |
| 10 | + "jsnext:main": "es/react-sandpack.js", |
9 | 11 | "typings": "dist/types/react-sandpack.d.ts", |
10 | | - "files": [ |
11 | | - "dist" |
12 | | - ], |
| 12 | + "files": ["dist", "es"], |
13 | 13 | "author": "Ives van Hoorne <[email protected]>", |
14 | 14 | "repository": { |
15 | 15 | "type": "git", |
|
20 | 20 | }, |
21 | 21 | "scripts": { |
22 | 22 | "lint": "tslint -t codeFrame 'src/**/*.ts' 'test/**/*.ts'", |
23 | | - "prebuild": "rimraf dist", |
24 | | - "build": "tsc --module commonjs && rollup -c rollup.config.ts && typedoc --out docs --target es6 --theme minimal --mode file src && gulp sass", |
| 23 | + "prebuild": "rimraf dist && rimraf es", |
| 24 | + "build": |
| 25 | + "tsc --module commonjs && rollup -c rollup.config.ts && yarn build:min && typedoc --out docs --target es6 --theme minimal --mode file src && gulp build", |
| 26 | + "build:min": "cross-env BUILD_MINIFY=1 rollup -c rollup.config.ts", |
25 | 27 | "start": "npm-run-all --parallel watch:**", |
26 | 28 | "watch:rollup": "rollup -c rollup.config.ts -w", |
27 | 29 | "watch:gulp": "gulp sass:watch", |
|
47 | 49 | }, |
48 | 50 | "validate-commit-msg": { |
49 | 51 | "types": "conventional-commit-types", |
50 | | - "helpMessage": "Use \"npm run commit\" instead, we use conventional-changelog format :) (https://github.com/commitizen/cz-cli)" |
| 52 | + "helpMessage": |
| 53 | + "Use \"npm run commit\" instead, we use conventional-changelog format :) (https://github.com/commitizen/cz-cli)" |
51 | 54 | } |
52 | 55 | }, |
53 | 56 | "jest": { |
54 | 57 | "transform": { |
55 | 58 | ".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js" |
56 | 59 | }, |
57 | 60 | "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$", |
58 | | - "moduleFileExtensions": [ |
59 | | - "ts", |
60 | | - "tsx", |
61 | | - "js" |
62 | | - ], |
63 | | - "coveragePathIgnorePatterns": [ |
64 | | - "/node_modules/", |
65 | | - "/test/" |
66 | | - ], |
| 61 | + "moduleFileExtensions": ["ts", "tsx", "js"], |
| 62 | + "coveragePathIgnorePatterns": ["/node_modules/", "/test/"], |
67 | 63 | "coverageThreshold": { |
68 | 64 | "global": { |
69 | 65 | "branches": 90, |
|
120 | 116 | "rollup-plugin-sass": "^0.6.0", |
121 | 117 | "rollup-plugin-sourcemaps": "^0.4.2", |
122 | 118 | "rollup-plugin-typescript2": "^0.11.1", |
| 119 | + "rollup-plugin-uglify": "^3.0.0", |
123 | 120 | "semantic-release": "^12.4.1", |
124 | 121 | "storybook-addon-jsx": "^5.3.0", |
125 | 122 | "ts-jest": "^22.0.0", |
|
0 commit comments