@weapp-core/schematics 1.0.6 → 1.0.8
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/dist/index.cjs +3 -3
- package/dist/index.d.cts +14 -8
- package/dist/index.d.ts +14 -8
- package/package.json +10 -5
package/dist/index.cjs
CHANGED
|
@@ -18,14 +18,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
|
|
20
20
|
// src/index.ts
|
|
21
|
-
var
|
|
22
|
-
__export(
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
23
|
generateJs: () => generateJs,
|
|
24
24
|
generateJson: () => generateJson,
|
|
25
25
|
generateWxml: () => generateWxml,
|
|
26
26
|
generateWxss: () => generateWxss
|
|
27
27
|
});
|
|
28
|
-
module.exports = __toCommonJS(
|
|
28
|
+
module.exports = __toCommonJS(index_exports);
|
|
29
29
|
function generateJs(type) {
|
|
30
30
|
if (type === "app") {
|
|
31
31
|
return `App({})`;
|
package/dist/index.d.cts
CHANGED
|
@@ -159,15 +159,13 @@ interface App$1 {
|
|
|
159
159
|
};
|
|
160
160
|
debug?: boolean;
|
|
161
161
|
functionalPages?: boolean;
|
|
162
|
-
subpackages?:
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
entry?: string;
|
|
162
|
+
subpackages?: Items[];
|
|
163
|
+
subPackages?: Items[];
|
|
164
|
+
workers?: string | {
|
|
165
|
+
path?: string;
|
|
166
|
+
isSubpackage?: boolean;
|
|
168
167
|
[k: string]: unknown;
|
|
169
|
-
}
|
|
170
|
-
workers?: string;
|
|
168
|
+
};
|
|
171
169
|
requiredBackgroundModes?: string[];
|
|
172
170
|
requiredPrivateInfos?: string[];
|
|
173
171
|
plugins?: {
|
|
@@ -237,6 +235,14 @@ interface App$1 {
|
|
|
237
235
|
componentFramework?: string;
|
|
238
236
|
[k: string]: unknown;
|
|
239
237
|
}
|
|
238
|
+
interface Items {
|
|
239
|
+
root?: string;
|
|
240
|
+
name?: string;
|
|
241
|
+
pages?: string[];
|
|
242
|
+
independent?: boolean;
|
|
243
|
+
entry?: string;
|
|
244
|
+
[k: string]: unknown;
|
|
245
|
+
}
|
|
240
246
|
/**
|
|
241
247
|
* This file was automatically generated by json-schema-to-typescript.
|
|
242
248
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
package/dist/index.d.ts
CHANGED
|
@@ -159,15 +159,13 @@ interface App$1 {
|
|
|
159
159
|
};
|
|
160
160
|
debug?: boolean;
|
|
161
161
|
functionalPages?: boolean;
|
|
162
|
-
subpackages?:
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
entry?: string;
|
|
162
|
+
subpackages?: Items[];
|
|
163
|
+
subPackages?: Items[];
|
|
164
|
+
workers?: string | {
|
|
165
|
+
path?: string;
|
|
166
|
+
isSubpackage?: boolean;
|
|
168
167
|
[k: string]: unknown;
|
|
169
|
-
}
|
|
170
|
-
workers?: string;
|
|
168
|
+
};
|
|
171
169
|
requiredBackgroundModes?: string[];
|
|
172
170
|
requiredPrivateInfos?: string[];
|
|
173
171
|
plugins?: {
|
|
@@ -237,6 +235,14 @@ interface App$1 {
|
|
|
237
235
|
componentFramework?: string;
|
|
238
236
|
[k: string]: unknown;
|
|
239
237
|
}
|
|
238
|
+
interface Items {
|
|
239
|
+
root?: string;
|
|
240
|
+
name?: string;
|
|
241
|
+
pages?: string[];
|
|
242
|
+
independent?: boolean;
|
|
243
|
+
entry?: string;
|
|
244
|
+
[k: string]: unknown;
|
|
245
|
+
}
|
|
240
246
|
/**
|
|
241
247
|
* This file was automatically generated by json-schema-to-typescript.
|
|
242
248
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weapp-core/schematics",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.8",
|
|
5
5
|
"description": "@weapp-core/schematics",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
},
|
|
16
16
|
"keywords": [],
|
|
17
17
|
"sideEffects": false,
|
|
18
|
+
"weapp-vite-dev": {
|
|
19
|
+
"exports": {
|
|
20
|
+
".": "./src/index.ts"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
18
23
|
"exports": {
|
|
19
24
|
".": {
|
|
20
25
|
"types": "./dist/index.d.ts",
|
|
@@ -22,6 +27,9 @@
|
|
|
22
27
|
"require": "./dist/index.cjs"
|
|
23
28
|
}
|
|
24
29
|
},
|
|
30
|
+
"main": "./dist/index.cjs",
|
|
31
|
+
"module": "./dist/index.js",
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
25
33
|
"files": [
|
|
26
34
|
"dist"
|
|
27
35
|
],
|
|
@@ -35,8 +43,5 @@
|
|
|
35
43
|
"lint": "eslint .",
|
|
36
44
|
"lint:fix": "eslint . --fix",
|
|
37
45
|
"schema": "tsx scripts/schema.ts"
|
|
38
|
-
}
|
|
39
|
-
"main": "./dist/index.cjs",
|
|
40
|
-
"module": "./dist/index.js",
|
|
41
|
-
"types": "./dist/index.d.ts"
|
|
46
|
+
}
|
|
42
47
|
}
|