mxcad 1.0.30 → 1.0.32

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mxcad",
3
- "version": "1.0.30",
3
+ "version": "1.0.32",
4
4
  "main": "./dist/mxcad.umd.js",
5
5
  "module": "./dist/mxcad.es.js",
6
6
  "typings": "dist/mxcad.d.ts",
@@ -8,18 +8,20 @@
8
8
  ".": {
9
9
  "require": "./dist/mxcad.umd.js",
10
10
  "module": "./dist/mxcad.es.js"
11
- }
11
+ },
12
+ "./wasm": "./dist/mxdrawassembly_min.wasm",
13
+ "./dist/mxdrawassembly_min.wasm": "./dist/mxdrawassembly_min.wasm"
12
14
  },
13
15
  "description": "mxcad cad编辑版",
14
16
  "files": [
15
17
  "dist"
16
18
  ],
17
19
  "peerDependencies": {
18
- "mxdraw": "^0.1.152"
20
+ "mxdraw": "^0.1.153"
19
21
  },
20
22
  "scripts": {
21
23
  "dev": "vite --host --force",
22
- "build": "npm run wasmJsReplace && tsc && vite build && dts-bundle-generator --config ./dts-bundle-generator.config.ts && npx typedoc --tsconfig tsconfig.json",
24
+ "build": "tsc && vite build && dts-bundle-generator --config ./dts-bundle-generator.config.ts && npx typedoc --tsconfig tsconfig.json",
23
25
  "preview": "vite preview",
24
26
  "test": "jest --runInBand",
25
27
  "test:coverage": "jest --runInBand --coverage",
@@ -31,8 +33,7 @@
31
33
  "emcc:init": "cd emsdk && git pull && cd ../ && .\\emsdk\\emsdk install latest && .\\emsdk\\emsdk activate latest && .\\emsdk\\emsdk_env.bat",
32
34
  "c-to-mjs": "emcc -O3 ./emsdk/WebAssembly/hello.cpp -o ./src/wasm/index.mjs -s STANDALONE_WASM",
33
35
  "c-to-wasi": "emcc -O2 ./emsdk/WebAssembly/hello.cpp -o ./emsdk/WebAssembly/wasi.js -s STANDALONE_WASM",
34
- "node:to": "node cToWasm",
35
- "wasmJsReplace": "node ./src/wasm/replace"
36
+ "node:to": "node cToWasm"
36
37
  },
37
38
  "devDependencies": {
38
39
  "@types/jest": "^29.0.0",
@@ -49,7 +50,7 @@
49
50
  "inquirer": "8.0.0",
50
51
  "jest": "^28.1.3",
51
52
  "lint-staged": "^13.0.3",
52
- "mxdraw": "^0.1.152",
53
+ "mxdraw": "^0.1.153",
53
54
  "prettier": "^2.7.1",
54
55
  "stylelint": "^14.11.0",
55
56
  "stylelint-config-recommended": "^9.0.0",