|
1 | 1 | { |
2 | 2 | "name": "react-segmenter", |
| 3 | + "type": "module", |
3 | 4 | "version": "1.0.0", |
4 | 5 | "description": "A React component that utilizes Intl.Segmenter to control line breaks in Japanese text.", |
5 | 6 | "author": "NotFounds", |
6 | 7 | "license": "MIT", |
7 | 8 | "repository": "NotFounds/react-segmenter", |
8 | 9 | "main": "dist/index.js", |
9 | | - "module": "dist/index.modern.js", |
| 10 | + "module": "dist/index.module.js", |
| 11 | + "unpkg": "dist/index.umd.js", |
10 | 12 | "source": "src/index.tsx", |
| 13 | + "exports": { |
| 14 | + "require": "./dist/index.cjs", |
| 15 | + "default": "./dist/index.modern.js" |
| 16 | + }, |
11 | 17 | "engines": { |
12 | | - "node": ">=10" |
| 18 | + "node": ">=18" |
13 | 19 | }, |
14 | 20 | "scripts": { |
15 | | - "build": "microbundle-crl --no-compress --format modern,cjs", |
16 | | - "start": "microbundle-crl watch --no-compress --format modern,cjs", |
| 21 | + "build": "microbundle", |
| 22 | + "dev": "microbundle watch", |
17 | 23 | "prepare": "run-s build", |
18 | 24 | "test": "run-s test:unit test:lint test:build", |
19 | 25 | "test:build": "run-s build", |
|
36 | 42 | "@types/react-dom": "^16.9.7 || ^18.0.0", |
37 | 43 | "@typescript-eslint/eslint-plugin": "^2.26.0 || ^5.0.0", |
38 | 44 | "@typescript-eslint/parser": "^2.26.0 || ^5.0.0", |
39 | | - "microbundle-crl": "^0.13.10", |
| 45 | + "microbundle": "^0.15.1", |
40 | 46 | "@babel/eslint-parser": "^10.0.3 || ^7.11.0", |
41 | 47 | "cross-env": "^7.0.2", |
42 | 48 | "eslint": "^6.8.0", |
|
0 commit comments