@weapp-core/schematics 1.0.7 → 1.0.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/dist/index.cjs +3 -3
- package/dist/index.d.cts +6 -2
- package/dist/index.d.ts +6 -2
- 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
|
@@ -161,7 +161,11 @@ interface App$1 {
|
|
|
161
161
|
functionalPages?: boolean;
|
|
162
162
|
subpackages?: Items[];
|
|
163
163
|
subPackages?: Items[];
|
|
164
|
-
workers?: string
|
|
164
|
+
workers?: string | {
|
|
165
|
+
path?: string;
|
|
166
|
+
isSubpackage?: boolean;
|
|
167
|
+
[k: string]: unknown;
|
|
168
|
+
};
|
|
165
169
|
requiredBackgroundModes?: string[];
|
|
166
170
|
requiredPrivateInfos?: string[];
|
|
167
171
|
plugins?: {
|
|
@@ -174,7 +178,7 @@ interface App$1 {
|
|
|
174
178
|
permission?: {
|
|
175
179
|
[k: string]: unknown;
|
|
176
180
|
};
|
|
177
|
-
sitemapLocation
|
|
181
|
+
sitemapLocation?: string;
|
|
178
182
|
useExtendedLib?: {
|
|
179
183
|
[k: string]: unknown;
|
|
180
184
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -161,7 +161,11 @@ interface App$1 {
|
|
|
161
161
|
functionalPages?: boolean;
|
|
162
162
|
subpackages?: Items[];
|
|
163
163
|
subPackages?: Items[];
|
|
164
|
-
workers?: string
|
|
164
|
+
workers?: string | {
|
|
165
|
+
path?: string;
|
|
166
|
+
isSubpackage?: boolean;
|
|
167
|
+
[k: string]: unknown;
|
|
168
|
+
};
|
|
165
169
|
requiredBackgroundModes?: string[];
|
|
166
170
|
requiredPrivateInfos?: string[];
|
|
167
171
|
plugins?: {
|
|
@@ -174,7 +178,7 @@ interface App$1 {
|
|
|
174
178
|
permission?: {
|
|
175
179
|
[k: string]: unknown;
|
|
176
180
|
};
|
|
177
|
-
sitemapLocation
|
|
181
|
+
sitemapLocation?: string;
|
|
178
182
|
useExtendedLib?: {
|
|
179
183
|
[k: string]: unknown;
|
|
180
184
|
};
|
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.9",
|
|
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
|
}
|