|
3 | 3 | "version": "1.0.14",
|
4 | 4 | "description": "Loader to use config.json file as css variables",
|
5 | 5 | "main": "lib/index.js",
|
| 6 | + "module": "es/index.js", |
| 7 | + "esnext": "esnext/index.js", |
| 8 | + "types": "types/index.d.ts", |
6 | 9 | "scripts": {
|
7 | 10 | "start": "yarn build -- -w",
|
8 |
| - "build": "rimraf lib && babel src --copy-files --out-dir lib --extensions .ts,.tsx", |
| 11 | + "build": "yarn run build:es && yarn run build:esnext && yarn run build:commonjs", |
| 12 | + "build:es": "rimraf ./es && BABEL_ENV=es babel --copy-files --out-dir es --extensions .ts,.tsx --ignore '**/*.test.ts,**/__tests__/**' ./src", |
| 13 | + "build:esnext": "rimraf ./esnext && tsc -p ./tsconfig.esnext.json", |
| 14 | + "build:commonjs": "rimraf ./lib && BABEL_ENV=commonjs babel --copy-files --out-dir lib --extensions .ts,.tsx --ignore '**/*.test.ts,**/__tests__/**' ./src", |
| 15 | + "build:types": "rimraf ./types && tsc -p ./tsconfig.types.json", |
| 16 | + "postbuild": "yarn run build:types && yarn run rewrite-paths", |
| 17 | + "rewrite-paths": "tsconfig-replace-paths -p ./tsconfig.json -s ./src -o ./esnext && tsconfig-replace-paths -p ./tsconfig.json -s ./src -o ./es && tsconfig-replace-paths -p ./tsconfig.json -s ./src -o ./lib", |
9 | 18 | "pack": "yarn build && yarn pack",
|
10 | 19 | "transpile": "tsc -p ./tsconfig.json",
|
11 | 20 | "typecheck": "tsc --noEmit",
|
|
18 | 27 | "release:major": "standard-version --release-as major"
|
19 | 28 | },
|
20 | 29 | "files": [
|
21 |
| - "lib" |
| 30 | + "lib", |
| 31 | + "es", |
| 32 | + "esnext", |
| 33 | + "types" |
22 | 34 | ],
|
23 | 35 | "repository": {
|
24 | 36 | "type": "git",
|
|
31 | 43 | "@stijnvanhulle:registry": "https://npm.pkg.github.com"
|
32 | 44 | },
|
33 | 45 | "peerDependencies": {
|
34 |
| - "webpack": "^5.66.0" |
| 46 | + "webpack": "^5.67.0" |
35 | 47 | },
|
36 | 48 | "dependencies": {
|
37 | 49 | "@babel/preset-typescript": "^7.16.7",
|
38 | 50 | "schema-utils": "^4.0.0"
|
39 | 51 | },
|
40 | 52 | "devDependencies": {
|
41 | 53 | "@babel/cli": "^7.16.8",
|
42 |
| - "@babel/core": "^7.16.7", |
| 54 | + "@babel/core": "^7.16.12", |
43 | 55 | "@babel/polyfill": "^7.12.1",
|
44 |
| - "@babel/preset-env": "^7.16.8", |
45 |
| - "@typescript-eslint/eslint-plugin": "^5.9.1", |
46 |
| - "@typescript-eslint/parser": "^5.9.1", |
| 56 | + "@babel/preset-env": "^7.16.11", |
| 57 | + "@typescript-eslint/eslint-plugin": "^5.10.1", |
| 58 | + "@typescript-eslint/parser": "^5.10.1", |
47 | 59 | "@webpack-contrib/defaults": "^6.3.0",
|
48 | 60 | "@webpack-contrib/eslint-config-webpack": "^3.0.0",
|
49 | 61 | "rimraf": "^3.0.2",
|
50 |
| - "eslint": "^8.6.0", |
| 62 | + "eslint": "^8.8.0", |
51 | 63 | "eslint-config-prettier": "^8.3.0",
|
52 | 64 | "eslint-plugin-babel": "^5.3.1",
|
53 | 65 | "eslint-plugin-import": "^2.25.4",
|
54 | 66 | "eslint-plugin-prettier": "^4.0.0",
|
55 | 67 | "eslint-plugin-unused-imports": "^2.0.0",
|
56 | 68 | "prettier": "^2.5.1",
|
57 | 69 | "standard-version": "^9.3.2",
|
58 |
| - "typescript": "^4.5.4", |
59 |
| - "webpack": "^5.66.0" |
60 |
| - } |
| 70 | + "typescript": "^4.5.5", |
| 71 | + "tsconfig-replace-paths": "^0.0.11", |
| 72 | + "webpack": "^5.67.0" |
| 73 | + }, |
| 74 | + "browserslist": [ |
| 75 | + "maintained node versions" |
| 76 | + ] |
61 | 77 | }
|
0 commit comments