@tuya-sat/micro-script 3.0.19-beta.2 → 3.0.19

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.
@@ -12,7 +12,11 @@ const bindCmp = (result, cmp, name) => {
12
12
 
13
13
  export const reWriteUI = () => {
14
14
  const result = { pages: {} };
15
- const pages = (require as any).context('../pages', true, /\.([tj]sx)|[tj]s$/);
15
+ const pages = (require as any).context(
16
+ '../../src/pages',
17
+ true,
18
+ /\.([tj]sx)|[tj]s$/
19
+ );
16
20
  pages.keys().forEach((key) => {
17
21
  if (key.includes('index.tsx')) {
18
22
  const name = key.split('/')[1];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuya-sat/micro-script",
3
- "version": "3.0.19-beta.2",
3
+ "version": "3.0.19",
4
4
  "bin": "./dist/bin/cli.js",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
@@ -23,9 +23,9 @@
23
23
  "@babel/preset-typescript": "7.16.7",
24
24
  "@babel/traverse": "^7.20.13",
25
25
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.4",
26
- "@tuya-sat/micro-dev-loader": "3.0.19-beta.2",
27
- "@tuya-sat/micro-dev-proxy": "3.0.19-beta.2",
28
- "@tuya-sat/micro-utils": "3.0.19-beta.2",
26
+ "@tuya-sat/micro-dev-loader": "3.0.19",
27
+ "@tuya-sat/micro-dev-proxy": "3.0.19",
28
+ "@tuya-sat/micro-utils": "3.0.19",
29
29
  "@types/kill-port": "^2.0.0",
30
30
  "babel-loader": "8.2.4",
31
31
  "babel-plugin-import": "1.13.3",