@tarojs/cli 4.0.5-alpha.7 → 4.0.5-alpha.9

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.5-alpha.7",
3
+ "version": "4.0.5-alpha.9",
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.5-alpha.7",
45
- "@tarojs/helper": "4.0.5-alpha.7",
46
- "@tarojs/service": "4.0.5-alpha.7",
47
- "@tarojs/shared": "4.0.5-alpha.7"
44
+ "@tarojs/binding": "4.0.5-alpha.9",
45
+ "@tarojs/helper": "4.0.5-alpha.9",
46
+ "@tarojs/service": "4.0.5-alpha.9",
47
+ "@tarojs/shared": "4.0.5-alpha.9"
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/taro": "4.0.5-alpha.7",
55
- "@tarojs/plugin-platform-h5": "4.0.5-alpha.7",
56
- "@tarojs/webpack5-runner": "4.0.5-alpha.7",
57
- "babel-preset-taro": "4.0.5-alpha.7",
58
- "@tarojs/plugin-platform-weapp": "4.0.5-alpha.7"
54
+ "@tarojs/taro": "4.0.5-alpha.9",
55
+ "@tarojs/plugin-platform-weapp": "4.0.5-alpha.9",
56
+ "@tarojs/plugin-platform-h5": "4.0.5-alpha.9",
57
+ "@tarojs/webpack5-runner": "4.0.5-alpha.9",
58
+ "babel-preset-taro": "4.0.5-alpha.9"
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}}
@@ -0,0 +1,12 @@
1
+ export { }
2
+
3
+ declare module 'solid-js' {
4
+ namespace JSX {
5
+ interface Directives {
6
+ /** Note:如果需要定义自定义指令的类型,可以在这里做
7
+ * 参考官网文档https://docs.solidjs.com/reference/jsx-attributes/use
8
+ * model: [() => any, (v: any) => any]
9
+ */
10
+ }
11
+ }
12
+ }