diff --git a/packages/taro-cli/package.json b/packages/taro-cli/package.json index 55dc62dcd429..84ad63a3b1e5 100644 --- a/packages/taro-cli/package.json +++ b/packages/taro-cli/package.json @@ -43,9 +43,9 @@ "dependencies": { "@tarojs/binding": "workspace:*", "@tarojs/helper": "workspace:*", + "@tarojs/plugin-doctor": "^0.0.13", "@tarojs/service": "workspace:*", "@tarojs/shared": "workspace:*", - "@tarojs/plugin-doctor": "^0.0.13", "adm-zip": "^0.5.12", "axios": "^1.6.8", "cli-highlight": "^2.1.11", @@ -60,11 +60,11 @@ }, "devDependencies": { "@babel/types": "^7.24.0", - "@tarojs/taro": "workspace:*", - "@tarojs/plugin-platform-weapp": "workspace:*", "@tarojs/plugin-platform-h5": "workspace:*", + "@tarojs/plugin-platform-weapp": "workspace:*", + "@tarojs/taro": "workspace:*", "@tarojs/webpack5-runner": "workspace:*", - "@types/babel__traverse": "^7.20.2", + "@types/babel__traverse": "^7.20.6", "babel-preset-taro": "workspace:*", "eslint-plugin-react": "^7.34.1", "eslint-plugin-react-hooks": "^4.4.0" diff --git a/packages/taro-cli/src/util/createPage.ts b/packages/taro-cli/src/util/createPage.ts index 786fbcbec172..62894c627d73 100644 --- a/packages/taro-cli/src/util/createPage.ts +++ b/packages/taro-cli/src/util/createPage.ts @@ -2,8 +2,8 @@ import { babelKit } from '@tarojs/helper' import { ConfigModificationState, ModifyCallback } from '../create/page' -import type { NodePath } from '@babel/traverse' import type { ArrayExpression, ExportDefaultDeclaration, ObjectExpression, ObjectProperty } from '@babel/types' +import type { NodePath } from 'babel__traverse' const t = babelKit.types diff --git a/packages/taro-extend/package.json b/packages/taro-extend/package.json index 9bea6dc3826b..e340c9f6339e 100644 --- a/packages/taro-extend/package.json +++ b/packages/taro-extend/package.json @@ -22,5 +22,13 @@ }, "engines": { "node": ">= 18" + }, + "devDependencies": { + "@tarojs/runtime": "workspace:*", + "@tarojs/taro": "workspace:*" + }, + "peerDependencies": { + "@tarojs/runtime": "workspace:*", + "@tarojs/taro": "workspace:*" } } diff --git a/packages/taro-platform-tt/package.json b/packages/taro-platform-tt/package.json index 526ff0c8e699..44b65856ac07 100644 --- a/packages/taro-platform-tt/package.json +++ b/packages/taro-platform-tt/package.json @@ -29,13 +29,16 @@ "engines": { "node": ">= 18" }, + "dependencies": { + "webpack-sources": "^3.2.3" + }, "devDependencies": { "@tarojs/components": "workspace:*", "@tarojs/service": "workspace:*", "@tarojs/shared": "workspace:*" }, "peerDependencies": { - "@tarojs/shared": "workspace:*", - "@tarojs/service": "workspace:*" + "@tarojs/service": "workspace:*", + "@tarojs/shared": "workspace:*" } } diff --git a/packages/taro-router-rn/package.json b/packages/taro-router-rn/package.json index a0aa6ff3baaa..286c27acb01d 100644 --- a/packages/taro-router-rn/package.json +++ b/packages/taro-router-rn/package.json @@ -35,6 +35,7 @@ "@react-navigation/native-stack": "^6.3.29", "@react-navigation/routers": "^6.1.9", "@react-navigation/stack": "^6.3.29", + "lodash": "^4.17.21", "query-string": "^9.0.0", "react-native-gesture-handler": "^2.16.0", "react-native-safe-area-context": "4.5.0", diff --git a/packages/taro-transformer-wx/package.json b/packages/taro-transformer-wx/package.json index 8f5dd78f01c7..3c1860868ad2 100644 --- a/packages/taro-transformer-wx/package.json +++ b/packages/taro-transformer-wx/package.json @@ -43,6 +43,9 @@ "@babel/types": "^7.24.0", "@tarojs/helper": "workspace:*", "babel-eslint": "^10.0.1", + "babel-helper-evaluate-path": "^0.5.0", + "babel-helper-mark-eval-scopes": "^0.4.3", + "babel-helper-remove-or-void": "^0.4.3", "babel-plugin-preval": "^5.1.0", "babel-plugin-transform-define": "^2.1.4", "eslint": "^8.57.0", diff --git a/packages/taroize/package.json b/packages/taroize/package.json index a015130064c2..430f3772d598 100644 --- a/packages/taroize/package.json +++ b/packages/taroize/package.json @@ -64,6 +64,7 @@ "@tarojs/helper": "workspace:*", "@tarojs/shared": "workspace:*", "himalaya-wxml": "^1.1.0", + "html": "^1.0.0", "lodash": "^4.17.21", "prettier": "^2.8.8" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2206c2c757dd..fc77b508023a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -636,7 +636,7 @@ importers: specifier: workspace:* version: link:../taro-webpack5-runner '@types/babel__traverse': - specifier: ^7.20.2 + specifier: ^7.20.6 version: 7.20.6 babel-preset-taro: specifier: workspace:* @@ -1021,7 +1021,14 @@ importers: packages/taro-components/loader: {} - packages/taro-extend: {} + packages/taro-extend: + devDependencies: + '@tarojs/runtime': + specifier: workspace:* + version: link:../taro-runtime + '@tarojs/taro': + specifier: workspace:* + version: link:../taro packages/taro-framework-react: dependencies: @@ -1586,6 +1593,10 @@ importers: version: link:../shared packages/taro-platform-tt: + dependencies: + webpack-sources: + specifier: ^3.2.3 + version: 3.2.3 devDependencies: '@tarojs/components': specifier: workspace:* @@ -2197,6 +2208,9 @@ importers: '@react-navigation/stack': specifier: ^6.3.29 version: 6.4.1(@react-navigation/native@6.1.18)(react-native-gesture-handler@2.20.0)(react-native-safe-area-context@4.5.0)(react-native-screens@3.34.0)(react-native@0.72.17)(react@18.3.1) + lodash: + specifier: ^4.17.21 + version: 4.17.21 query-string: specifier: ^9.0.0 version: 9.1.0 @@ -2355,6 +2369,15 @@ importers: babel-eslint: specifier: ^10.0.1 version: 10.1.0(eslint@8.57.1) + babel-helper-evaluate-path: + specifier: ^0.5.0 + version: 0.5.0 + babel-helper-mark-eval-scopes: + specifier: ^0.4.3 + version: 0.4.3 + babel-helper-remove-or-void: + specifier: ^0.4.3 + version: 0.4.3 babel-plugin-preval: specifier: ^5.1.0 version: 5.1.0 @@ -2786,6 +2809,9 @@ importers: himalaya-wxml: specifier: ^1.1.0 version: 1.1.0 + html: + specifier: ^1.0.0 + version: 1.0.0 lodash: specifier: ^4.17.21 version: 4.17.21 @@ -16353,6 +16379,13 @@ packages: tapable: 2.2.1 webpack: 5.91.0 + /html@1.0.0: + resolution: {integrity: sha512-lw/7YsdKiP3kk5PnR1INY17iJuzdAtJewxr14ozKJWbbR97znovZ0mh+WEMZ8rjc3lgTK+ID/htTjuyGKB52Kw==, tarball: https://registry.npmjs.org/html/-/html-1.0.0.tgz} + hasBin: true + dependencies: + concat-stream: 1.6.2 + dev: false + /htmlparser2@6.1.0: resolution: {integrity: sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==, tarball: https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz} dependencies: