|
9 | 9 | "bugs": {
|
10 | 10 | "url": "https://github.com/intlify/vue-i18n-extensions/issues"
|
11 | 11 | },
|
| 12 | + "homepage": "https://github.com/intlify/vue-i18n-extensions#readme", |
| 13 | + "keywords": [ |
| 14 | + "extensions", |
| 15 | + "i18n", |
| 16 | + "optimaization", |
| 17 | + "server-side-rendering", |
| 18 | + "vue", |
| 19 | + "vue-i18n" |
| 20 | + ], |
| 21 | + "license": "MIT", |
12 | 22 | "dependencies": {
|
13 | 23 | "@babel/parser": "^7.24.6",
|
14 | 24 | "@intlify/shared": "^9.0.0",
|
|
66 | 76 | "optional": true
|
67 | 77 | }
|
68 | 78 | },
|
69 |
| - "engines": { |
70 |
| - "node": ">= 18" |
71 |
| - }, |
72 | 79 | "files": [
|
73 |
| - "lib/*.js", |
| 80 | + "dist/cjs/*.js", |
| 81 | + "dist/esm/*.js", |
74 | 82 | "dist/*.d.ts"
|
75 | 83 | ],
|
76 |
| - "homepage": "https://github.com/intlify/vue-i18n-extensions#readme", |
77 |
| - "keywords": [ |
78 |
| - "extensions", |
79 |
| - "i18n", |
80 |
| - "optimaization", |
81 |
| - "server-side-rendering", |
82 |
| - "vue", |
83 |
| - "vue-i18n" |
84 |
| - ], |
85 |
| - "license": "MIT", |
86 |
| - "lint-staged": { |
87 |
| - "*.{json,md,yml}": [ |
88 |
| - "prettier --write" |
89 |
| - ], |
90 |
| - "*.{js,mjs,cjs}": [ |
91 |
| - "prettier --write", |
92 |
| - "eslint --fix" |
93 |
| - ], |
94 |
| - "*.ts?(x)": [ |
95 |
| - "prettier --parser=typescript --write", |
96 |
| - "eslint --fix" |
97 |
| - ] |
| 84 | + "main": "dist/cjs/index.js", |
| 85 | + "module": "dist/esm/index.js", |
| 86 | + "types": "dist/vue-i18n-extensions.d.ts", |
| 87 | + "exports": { |
| 88 | + ".": { |
| 89 | + "types": "./dist/vue-i18n-extensions.d.ts", |
| 90 | + "import": "./dist/esm/index.js", |
| 91 | + "require": "./dist/cjs/index.js" |
| 92 | + } |
98 | 93 | },
|
99 |
| - "main": "lib/index.js", |
100 | 94 | "repository": {
|
101 | 95 | "type": "git",
|
102 | 96 | "url": "git+https://github.com/intlify/vue-i18n-extensions.git"
|
|
109 | 103 | "build:nightly": "pnpm build:transpile && pnpm build:extract",
|
110 | 104 | "build:docs": "api-docs-gen ./temp/vue-i18n-extensions.api.json -c ./docsgen.config.js -o ./docs",
|
111 | 105 | "build:extract": "api-extractor run -l -c ./api-extractor.json --typescript-compiler-folder node_modules/typescript",
|
112 |
| - "build:transpile": "tsc -p tsconfig.build.json", |
| 106 | + "build:transpile": "run-s build:transpile:*", |
| 107 | + "build:transpile:cjs": "tsc -p tsconfig.cjs.json", |
| 108 | + "build:transpile:esm": "tsc -p tsconfig.esm.json", |
113 | 109 | "check-install": "tsx scripts/playwright.ts",
|
114 | 110 | "clean": "git clean -fdx",
|
115 | 111 | "coverage": "opener coverage/lcov-report/index.html",
|
|
125 | 121 | "test:e2e": "vitest -c ./vitest.e2e.config.ts run",
|
126 | 122 | "test:unit": "vitest run",
|
127 | 123 | "test:watch": "vitest --no-cache --watch",
|
128 |
| - "watch": "tsc -p tsconfig.build.json --watch" |
| 124 | + "watch": "tsc -p tsconfig.cjs.json --watch" |
129 | 125 | },
|
130 |
| - "types": "dist/vue-i18n-extensions.d.ts", |
131 |
| - "packageManager": "[email protected]" |
| 126 | + "packageManager": "[email protected]", |
| 127 | + "engines": { |
| 128 | + "node": ">= 18" |
| 129 | + }, |
| 130 | + "lint-staged": { |
| 131 | + "*.{json,md,yml}": [ |
| 132 | + "prettier --write" |
| 133 | + ], |
| 134 | + "*.{js,mjs,cjs}": [ |
| 135 | + "prettier --write", |
| 136 | + "eslint --fix" |
| 137 | + ], |
| 138 | + "*.ts?(x)": [ |
| 139 | + "prettier --parser=typescript --write", |
| 140 | + "eslint --fix" |
| 141 | + ] |
| 142 | + } |
132 | 143 | }
|
0 commit comments