@tarojs/cli-convertor 3.7.0-beta.1 → 3.7.0-beta.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.
- package/bin/taro-convert +10 -2
- package/dist/index.js +915 -184
- package/dist/index.js.map +1 -1
- package/dist/util/astConvert.js +66 -3
- package/dist/util/astConvert.js.map +1 -1
- package/dist/util/constants.js +3 -0
- package/dist/util/constants.js.map +1 -0
- package/dist/util/global.js +7 -0
- package/dist/util/global.js.map +1 -0
- package/dist/util/index.js +362 -13
- package/dist/util/index.js.map +1 -1
- package/package.json +28 -10
package/bin/taro-convert
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
#! /usr/bin/env node
|
|
2
2
|
|
|
3
3
|
const Convertor = require('../dist/index').default
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
|
|
5
|
+
try {
|
|
6
|
+
const convertor = new Convertor(process.cwd(), false)
|
|
7
|
+
convertor.run()
|
|
8
|
+
} catch (error) {
|
|
9
|
+
console.error('转换异常:', error.stack)
|
|
10
|
+
process.exit(1)
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
|