|
14 | 14 | "rtlcss" |
15 | 15 | ], |
16 | 16 | "main": "index.js", |
| 17 | + "module": "esm/index.js", |
17 | 18 | "types": "index.d.ts", |
| 19 | + "exports": { |
| 20 | + ".": { |
| 21 | + "require": "./index.js", |
| 22 | + "import": "./esm/index.js" |
| 23 | + }, |
| 24 | + "./options": { |
| 25 | + "require": "./options.js", |
| 26 | + "import": "./esm/options.js" |
| 27 | + } |
| 28 | + }, |
18 | 29 | "files": [ |
19 | | - "@types/**/*", |
20 | | - "constants/**/*", |
21 | | - "data/**/*", |
22 | | - "parsers/**/*", |
23 | | - "utilities/**/*", |
| 30 | + "esm/**/*", |
24 | 31 | "index.d.ts", |
25 | 32 | "index.js", |
26 | 33 | "options.d.ts", |
|
29 | 36 | "scripts": { |
30 | 37 | "test": "jest --clearCache && jest --verbose", |
31 | 38 | "lint": "eslint src/**/*.ts", |
32 | | - "copy": "cp -r ./dist/. ./", |
33 | | - "build": "webpack && tsconfig-replace-paths -p tsconfig.json -s ./src -o ./dist && yarn copy", |
| 39 | + "clean": "./scripts/clean.sh", |
| 40 | + "copy": "./scripts/copy.sh", |
| 41 | + "build-dts": "rollup --config rollup.dts.config.js", |
| 42 | + "modify-dts": "replace-in-file --configFile=config.replace.js", |
| 43 | + "build": "yarn clean && rollup --config rollup.config.js && yarn copy && yarn build-dts && yarn modify-dts", |
34 | 44 | "prepare": "yarn build && yarn copy", |
35 | 45 | "prepublishOnly": "npm run lint && npm run test", |
36 | 46 | "version": "git add .", |
|
46 | 56 | "rtlcss": "^3.5.0" |
47 | 57 | }, |
48 | 58 | "devDependencies": { |
| 59 | + "@rollup/plugin-json": "^4.1.0", |
| 60 | + "@rollup/plugin-typescript": "^8.3.1", |
49 | 61 | "@types/eslint": "^8.2.2", |
50 | 62 | "@types/jest": "^27.4.0", |
51 | 63 | "@types/node": "^17.0.10", |
52 | 64 | "@types/rtlcss": "^3.1.2", |
53 | 65 | "@typescript-eslint/eslint-plugin": "^4.31.1", |
54 | 66 | "@typescript-eslint/parser": "^4.31.1", |
55 | | - "clean-webpack-plugin": "^4.0.0", |
56 | 67 | "coveralls": "^3.1.1", |
57 | 68 | "eslint": "^7.32.0", |
58 | 69 | "eslint-plugin-jest": "^24.4.2", |
59 | 70 | "jest": "^27.4.7", |
60 | 71 | "postcss": "^8.3.11", |
| 72 | + "replace-in-file": "^6.3.2", |
| 73 | + "rollup": "^2.70.1", |
| 74 | + "rollup-plugin-dts": "^4.2.0", |
| 75 | + "rollup-plugin-terser": "^7.0.2", |
61 | 76 | "ts-jest": "^27.1.3", |
62 | 77 | "ts-loader": "^9.2.6", |
63 | | - "tsconfig-replace-paths": "^0.0.11", |
64 | | - "typescript": "4.4.4", |
65 | | - "webpack": "^5.66.0", |
66 | | - "webpack-cli": "^4.9.1" |
| 78 | + "tslib": "^2.3.1", |
| 79 | + "typescript": "4.4.4" |
67 | 80 | }, |
68 | 81 | "peerDependencies": { |
69 | 82 | "postcss": "^8.0.0" |
|
0 commit comments