@himail/xlsx 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,31 +1,20 @@
1
1
  {
2
2
  "name": "@himail/xlsx",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
+ "module": "lib/index.mjs",
6
7
  "files": [
7
- "lib/"
8
+ "lib/",
9
+ "README.md"
8
10
  ],
9
11
  "scripts": {
10
12
  "clean": "rimraf lib",
11
- "copyFile2": "cp lib/v2/xm-office-excel.umd.js lib/v2/index.js && cp src/index.css lib/v2/index.css",
12
- "copyFile3": "cp lib/v3/xm-office-excel.umd.js lib/v3/index.js && cp src/index.css lib/v3/index.css",
13
- "copyReadme": "cp ../../../help.md README.md || true",
14
- "copyType": "cp index.d.ts lib/index.d.ts",
15
- "copyScripts": "mkdir -p lib/script/ && cp ../../script/postinstall.js lib/script/postinstall.js && cp ../../script/switch-cli.js lib/script/switch-cli.js && cp ../../script/utils.js lib/script/utils.js",
16
- "build:2": "node ../../node_modules/vue-demi/bin/vue-demi-switch.js 2 vue2 && vite build && npm run copyFile2",
17
- "build:3": "node ../../node_modules/vue-demi/bin/vue-demi-switch.js 3 vue3 && vite build && npm run copyFile3",
18
- "build": "npm run clean && npm run build:3 && npm run copyScripts && npm run copyType"
13
+ "build:3": "vite build",
14
+ "build": "npm run clean && npm run build:3"
19
15
  },
20
16
  "peerDependencies": {
21
- "@vue/composition-api": "^1.7.1",
22
- "vue": "^2.0.0 || >=3.0.0",
23
- "vue-demi": "^0.14.6"
24
- },
25
- "peerDependenciesMeta": {
26
- "@vue/composition-api": {
27
- "optional": true
28
- }
17
+ "vue": ">=3.0.0"
29
18
  },
30
19
  "keywords": [
31
20
  "vue",
package/lib/index.js DELETED
@@ -1,7 +0,0 @@
1
- // 根据环境自动选择 Vue 版本
2
- if (typeof process !== 'undefined' && process.env && process.env.VUE_VERSION) {
3
- module.exports = require('./v' + process.env.VUE_VERSION + '/index.js');
4
- } else {
5
- // 默认使用 Vue 3
6
- module.exports = require('./v3/index.js');
7
- }