@tarojs/cli 4.0.7-alpha.2 → 4.0.7-alpha.4

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.
@@ -1,6 +1,6 @@
1
1
  import { ModifyCallback } from '../create/page';
2
- import type { NodePath } from '@babel/traverse';
3
2
  import type { ExportDefaultDeclaration } from '@babel/types';
3
+ import type { NodePath } from 'babel__traverse';
4
4
  export declare const modifyPagesOrSubPackages: (params: {
5
5
  path: NodePath<ExportDefaultDeclaration>;
6
6
  fullPagePath: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/cli",
3
- "version": "4.0.7-alpha.2",
3
+ "version": "4.0.7-alpha.4",
4
4
  "description": "cli tool for taro",
5
5
  "author": "O2Team",
6
6
  "license": "MIT",
@@ -41,21 +41,21 @@
41
41
  "ora": "^5.4.1",
42
42
  "semver": "^7.6.0",
43
43
  "validate-npm-package-name": "^5.0.0",
44
- "@tarojs/binding": "4.0.7-alpha.2",
45
- "@tarojs/helper": "4.0.7-alpha.2",
46
- "@tarojs/service": "4.0.7-alpha.2",
47
- "@tarojs/shared": "4.0.7-alpha.2"
44
+ "@tarojs/binding": "4.0.7-alpha.4",
45
+ "@tarojs/helper": "4.0.7-alpha.4",
46
+ "@tarojs/service": "4.0.7-alpha.4",
47
+ "@tarojs/shared": "4.0.7-alpha.4"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@babel/types": "^7.24.0",
51
- "@types/babel__traverse": "^7.20.2",
51
+ "@types/babel__traverse": "^7.20.6",
52
52
  "eslint-plugin-react": "^7.34.1",
53
53
  "eslint-plugin-react-hooks": "^4.4.0",
54
- "@tarojs/taro": "4.0.7-alpha.2",
55
- "@tarojs/plugin-platform-h5": "4.0.7-alpha.2",
56
- "@tarojs/plugin-platform-weapp": "4.0.7-alpha.2",
57
- "@tarojs/webpack5-runner": "4.0.7-alpha.2",
58
- "babel-preset-taro": "4.0.7-alpha.2"
54
+ "@tarojs/plugin-platform-h5": "4.0.7-alpha.4",
55
+ "@tarojs/plugin-platform-weapp": "4.0.7-alpha.4",
56
+ "@tarojs/taro": "4.0.7-alpha.4",
57
+ "@tarojs/webpack5-runner": "4.0.7-alpha.4",
58
+ "babel-preset-taro": "4.0.7-alpha.4"
59
59
  },
60
60
  "scripts": {
61
61
  "prod": "pnpm run build",
@@ -2,8 +2,8 @@ import { babelKit } from '@tarojs/helper'
2
2
 
3
3
  import { ConfigModificationState, ModifyCallback } from '../create/page'
4
4
 
5
- import type { NodePath } from '@babel/traverse'
6
5
  import type { ArrayExpression, ExportDefaultDeclaration, ObjectExpression, ObjectProperty } from '@babel/types'
6
+ import type { NodePath } from 'babel__traverse'
7
7
 
8
8
  const t = babelKit.types
9
9
 
@@ -1,5 +1,5 @@
1
- {{#if typescript }}import type { UserConfigExport } from "@tarojs/cli";
2
- {{/if}}
1
+ {{#if typescript }}import type { UserConfigExport } from "@tarojs/cli"{{/if}}
2
+
3
3
  export default {
4
4
  {{#if (eq compiler "Webpack5") }} logger: {
5
5
  quiet: false,
@@ -1,5 +1,5 @@
1
1
  import { defineConfig{{#if typescript }}, type UserConfigExport{{/if}} } from '@tarojs/cli'
2
- {{#if typescript }}import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin'{{/if}}
2
+ {{#if typescript }}{{#unless (eq compiler "Vite")}}import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin'{{/unless}}{{/if}}
3
3
  import devConfig from './dev'
4
4
  import prodConfig from './prod'
5
5
 
@@ -46,7 +46,7 @@ export default defineConfig{{#if typescript }}<'{{ to_lower_case compiler }}'>{{
46
46
  generateScopedName: '[name]__[local]___[hash:base64:5]'
47
47
  }
48
48
  }
49
- }{{#if typescript }},{{#unless (eq compiler "Vite")}}
49
+ },{{#if typescript }}{{#unless (eq compiler "Vite")}}
50
50
  webpackChain(chain) {
51
51
  chain.resolve.plugin('tsconfig-paths').use(TsconfigPathsPlugin)
52
52
  }{{/unless}}{{/if}}
@@ -1,5 +1,5 @@
1
- {{#if typescript }}import type { UserConfigExport } from "@tarojs/cli";
2
- {{/if}}
1
+ {{#if typescript }}import type { UserConfigExport } from "@tarojs/cli"{{/if}}
2
+
3
3
  export default {
4
4
  mini: {},
5
5
  h5: {