@tarojs/cli 4.0.4 → 4.0.5-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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/cli",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5-alpha.10",
|
|
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.
|
|
45
|
-
"@tarojs/helper": "4.0.
|
|
46
|
-
"@tarojs/service": "4.0.
|
|
47
|
-
"@tarojs/shared": "4.0.
|
|
44
|
+
"@tarojs/binding": "4.0.5-alpha.10",
|
|
45
|
+
"@tarojs/helper": "4.0.5-alpha.10",
|
|
46
|
+
"@tarojs/service": "4.0.5-alpha.10",
|
|
47
|
+
"@tarojs/shared": "4.0.5-alpha.10"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@babel/types": "^7.24.0",
|
|
51
51
|
"@types/babel__traverse": "^7.20.2",
|
|
52
52
|
"eslint-plugin-react": "^7.34.1",
|
|
53
53
|
"eslint-plugin-react-hooks": "^4.4.0",
|
|
54
|
-
"@tarojs/
|
|
55
|
-
"@tarojs/plugin-platform-
|
|
56
|
-
"@tarojs/
|
|
57
|
-
"
|
|
58
|
-
"
|
|
54
|
+
"@tarojs/plugin-platform-weapp": "4.0.5-alpha.10",
|
|
55
|
+
"@tarojs/plugin-platform-h5": "4.0.5-alpha.10",
|
|
56
|
+
"@tarojs/webpack5-runner": "4.0.5-alpha.10",
|
|
57
|
+
"@tarojs/taro": "4.0.5-alpha.10",
|
|
58
|
+
"babel-preset-taro": "4.0.5-alpha.10"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"prod": "pnpm run build",
|
|
@@ -17,6 +17,9 @@ const handler = {
|
|
|
17
17
|
'/types/vue.d.ts' (err, { framework, typescript }) {
|
|
18
18
|
return ['Vue3'].includes(framework) && !!typescript
|
|
19
19
|
},
|
|
20
|
+
'/types/solid.d.ts' (err, { framework, typescript }) {
|
|
21
|
+
return ['Solid'].includes(framework) && !!typescript
|
|
22
|
+
},
|
|
20
23
|
'/src/pages/index/index.jsx' (err, { pageDir = '', pageName = '', subPkg = '' }) {
|
|
21
24
|
return {
|
|
22
25
|
setPageName: normalizePath(path.join(PAGES_ENTRY, pageDir, pageName, 'index.jsx')),
|
|
@@ -14,9 +14,10 @@
|
|
|
14
14
|
"strictNullChecks": true,
|
|
15
15
|
"sourceMap": true,
|
|
16
16
|
"rootDir": ".",
|
|
17
|
-
"jsx": "{{#if (includes "Vue3" s=framework)}}preserve{{else}}react-jsx{{/if}}",{{#if (eq framework "Preact") }}
|
|
17
|
+
"jsx": "{{#if (includes "Vue3" s=framework)}}preserve{{else if (eq framework 'Solid')}}preserve{{else}}react-jsx{{/if}}",{{#if (eq framework "Preact") }}
|
|
18
18
|
"skipLibCheck": true,{{/if}}
|
|
19
|
-
"allowJs": true,
|
|
19
|
+
"allowJs": true,{{#if (eq framework "Solid")}}
|
|
20
|
+
"jsxImportSource": "solid-js",{{/if}}
|
|
20
21
|
"resolveJsonModule": true,
|
|
21
22
|
"typeRoots": [
|
|
22
23
|
"node_modules/@types"
|
|
@@ -29,4 +29,7 @@ declare namespace NodeJS {
|
|
|
29
29
|
{{#if (includes "Vue3" s=framework)}}
|
|
30
30
|
declare module '@tarojs/components' {
|
|
31
31
|
export * from '@tarojs/components/types/index.vue3'
|
|
32
|
+
}{{else if (includes "Solid" s=framework)}}
|
|
33
|
+
declare module '@tarojs/components' {
|
|
34
|
+
export * from '@tarojs/components/types/index.solid'
|
|
32
35
|
}{{/if}}
|