@tarojs/helper 3.8.0-canary.0 → 4.0.0-alpha.10

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.
Files changed (51) hide show
  1. package/LICENSE +11 -4
  2. package/README.md +25 -0
  3. package/dist/babelRegister.d.ts +4 -5
  4. package/dist/babelRegister.js +2 -54
  5. package/dist/babelRegister.js.map +1 -1
  6. package/dist/constants.d.ts +6 -6
  7. package/dist/constants.js +31 -34
  8. package/dist/constants.js.map +1 -1
  9. package/dist/dotenv.js +1 -1
  10. package/dist/dotenv.js.map +1 -1
  11. package/dist/esbuild/index.js +8 -5
  12. package/dist/esbuild/index.js.map +1 -1
  13. package/dist/esbuild/swc-plugin.js +3 -3
  14. package/dist/esbuild/swc-plugin.js.map +1 -1
  15. package/dist/esbuild/utils.js +2 -2
  16. package/dist/esbuild/utils.js.map +1 -1
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.js +1 -2
  19. package/dist/index.js.map +1 -1
  20. package/dist/npm.d.ts +2 -2
  21. package/dist/npm.js +6 -6
  22. package/dist/npm.js.map +1 -1
  23. package/dist/swcRegister.d.ts +0 -6
  24. package/dist/swcRegister.js +0 -15
  25. package/dist/swcRegister.js.map +1 -1
  26. package/dist/terminal.d.ts +1 -1
  27. package/dist/terminal.js.map +1 -1
  28. package/dist/utils.d.ts +33 -2
  29. package/dist/utils.js +86 -84
  30. package/dist/utils.js.map +1 -1
  31. package/package.json +34 -35
  32. package/swc/.gitkeep +0 -0
  33. package/swc/swc_plugin_compile_mode.wasm +0 -0
  34. package/swc/swc_plugin_define_config.wasm +0 -0
  35. package/swc/plugin-compile-mode/Cargo.lock +0 -2086
  36. package/swc/plugin-compile-mode/Cargo.toml +0 -20
  37. package/swc/plugin-compile-mode/src/lib.rs +0 -52
  38. package/swc/plugin-compile-mode/src/tests/attributes.rs +0 -85
  39. package/swc/plugin-compile-mode/src/tests/condition.rs +0 -71
  40. package/swc/plugin-compile-mode/src/tests/entry.rs +0 -32
  41. package/swc/plugin-compile-mode/src/tests/looping.rs +0 -134
  42. package/swc/plugin-compile-mode/src/tests/mod.rs +0 -98
  43. package/swc/plugin-compile-mode/src/tests/shake.rs +0 -41
  44. package/swc/plugin-compile-mode/src/transform.rs +0 -466
  45. package/swc/plugin-compile-mode/src/utils/constants.rs +0 -11
  46. package/swc/plugin-compile-mode/src/utils/mod.rs +0 -236
  47. package/swc/plugin-compile-mode/target/wasm32-wasi/release/swc_plugin_compile_mode.wasm +0 -0
  48. package/swc/plugin-define-config/Cargo.lock +0 -2034
  49. package/swc/plugin-define-config/Cargo.toml +0 -27
  50. package/swc/plugin-define-config/src/lib.rs +0 -188
  51. package/swc/plugin-define-config/target/wasm32-wasi/release/swc_plugin_define_config.wasm +0 -0
package/package.json CHANGED
@@ -1,7 +1,9 @@
1
1
  {
2
2
  "name": "@tarojs/helper",
3
- "version": "3.8.0-canary.0",
3
+ "version": "4.0.0-alpha.10",
4
4
  "description": "Taro Helper",
5
+ "author": "O2Team",
6
+ "license": "MIT",
5
7
  "main": "index.js",
6
8
  "types": "dist/index.d.ts",
7
9
  "repository": {
@@ -17,55 +19,52 @@
17
19
  "keywords": [
18
20
  "taro"
19
21
  ],
20
- "author": "luckyadam",
21
- "license": "MIT",
22
22
  "bugs": {
23
23
  "url": "https://github.com/NervJS/taro/issues"
24
24
  },
25
+ "engines": {
26
+ "node": ">= 18"
27
+ },
25
28
  "homepage": "https://github.com/NervJS/taro#readme",
26
29
  "dependencies": {
27
- "@babel/core": "^7.14.5",
28
- "@babel/parser": "^7.14.5",
29
- "@babel/plugin-proposal-decorators": "^7.14.5",
30
- "@babel/plugin-proposal-object-rest-spread": "^7.14.5",
31
- "@babel/plugin-transform-runtime": "^7.14.5",
32
- "@babel/preset-env": "^7.14.5",
33
- "@babel/preset-typescript": "^7.14.5",
34
- "@babel/register": "^7.14.5",
35
- "@babel/runtime": "^7.14.5",
36
- "@babel/traverse": "^7.14.5",
37
- "@swc/core": "1.3.23",
30
+ "@babel/core": "^7.24.4",
31
+ "@babel/generator": "^7.24.4",
32
+ "@babel/parser": "^7.24.4",
33
+ "@babel/traverse": "^7.24.1",
34
+ "@babel/types": "^7.24.0",
35
+ "@swc/core": "^1.3.96",
38
36
  "@swc/register": "^0.1.10",
39
37
  "ansi-escapes": "^4.3.2",
40
- "chalk": "3.0.0",
41
- "chokidar": "^3.3.1",
38
+ "chalk": "^4.1.2",
39
+ "chokidar": "^3.6.0",
42
40
  "cross-spawn": "^7.0.3",
43
- "debug": "4.3.4",
44
- "dotenv": "^16.0.3",
45
- "dotenv-expand": "^9.0.0",
46
- "esbuild": "^0.14.27",
47
- "find-yarn-workspace-root": "2.0.0",
48
- "fs-extra": "^8.0.1",
41
+ "debug": "^4.3.4",
42
+ "dotenv": "^16.4.5",
43
+ "dotenv-expand": "^11.0.6",
44
+ "esbuild": "^0.20.2",
45
+ "find-yarn-workspace-root": "^2.0.0",
46
+ "fs-extra": "^11.2.0",
49
47
  "lodash": "^4.17.21",
50
48
  "require-from-string": "^2.0.2",
51
- "resolve": "^1.22.0",
52
- "supports-hyperlinks": "^2.2.0",
53
- "yauzl": "2.10.0"
49
+ "resolve": "^1.22.8",
50
+ "supports-hyperlinks": "^3.0.0"
54
51
  },
55
52
  "devDependencies": {
56
- "babel-jest": "^29.5.0",
57
- "jest": "^29.3.1",
58
- "jest-cli": "^29.3.1",
59
- "jest-environment-node": "^29.5.0",
60
- "ts-jest": "^29.0.5",
61
- "typescript": "^4.7.4"
53
+ "@types/babel__core": "^7.20.5",
54
+ "@types/babel__generator": "^7.6.8",
55
+ "@types/babel__traverse": "^7.20.5",
56
+ "@tarojs/taro": "4.0.0-alpha.10"
62
57
  },
63
58
  "scripts": {
64
- "build": "run-s clean prod",
65
- "clean": "rimraf dist",
59
+ "prod": "pnpm run build",
60
+ "clean": "rimraf --impl=move-remove dist",
61
+ "prebuild": "pnpm run clean",
62
+ "build": "tsc",
63
+ "postbuild": "pnpm run swc:backup",
66
64
  "dev": "tsc -w",
67
- "prod": "tsc",
68
65
  "test": "jest --collectCoverage",
69
- "test:ci": "jest --ci --i --coverage false"
66
+ "test:ci": "jest --ci -i --coverage --silent",
67
+ "artifacts": "node scripts/artifacts.js",
68
+ "swc:backup": "node scripts/backup.js"
70
69
  }
71
70
  }
package/swc/.gitkeep ADDED
File without changes
Binary file