@weapp-core/init 1.1.17 → 1.2.0
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 +7 -2
- package/dist/index.js +6 -1
- package/package.json +3 -3
- package/templates/default/CHANGELOG.md +3 -0
- package/templates/default/package.json +3 -3
- package/templates/tailwindcss/CHANGELOG.md +3 -0
- package/templates/tailwindcss/package.json +4 -4
- package/templates/tdesign/CHANGELOG.md +3 -0
- package/templates/tdesign/package.json +5 -5
- package/templates/vant/CHANGELOG.md +3 -0
- package/templates/vant/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -41,7 +41,7 @@ __export(index_exports, {
|
|
|
41
41
|
});
|
|
42
42
|
module.exports = __toCommonJS(index_exports);
|
|
43
43
|
|
|
44
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_@swc+core@1.11.
|
|
44
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_@swc+core@1.11.24_jiti@2.4.2_postcss@8.5.3_tsx@4.19.4_typescript@5.8.3_yaml@2.7.1/node_modules/tsup/assets/cjs_shims.js
|
|
45
45
|
var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
46
46
|
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
47
47
|
|
|
@@ -471,7 +471,7 @@ var posix = /* @__PURE__ */ mix(":");
|
|
|
471
471
|
var win32 = /* @__PURE__ */ mix(";");
|
|
472
472
|
|
|
473
473
|
// ../../packages/weapp-vite/package.json
|
|
474
|
-
var version = "4.
|
|
474
|
+
var version = "4.1.0";
|
|
475
475
|
|
|
476
476
|
// src/context.ts
|
|
477
477
|
function createContext() {
|
|
@@ -553,6 +553,7 @@ yarn-error.log*
|
|
|
553
553
|
.turbo
|
|
554
554
|
|
|
555
555
|
dist
|
|
556
|
+
dist-plugin
|
|
556
557
|
vite.config.ts.timestamp-*.mjs`;
|
|
557
558
|
}
|
|
558
559
|
|
|
@@ -657,6 +658,10 @@ async function createOrUpdateProjectConfig(options) {
|
|
|
657
658
|
(0, import_shared.set)(projectConfig, "miniprogramRoot", "dist/");
|
|
658
659
|
(0, import_shared.set)(projectConfig, "srcMiniprogramRoot", "dist/");
|
|
659
660
|
(0, import_shared.set)(projectConfig, "setting.packNpmManually", true);
|
|
661
|
+
const compileType = (0, import_shared.get)(projectConfig, "compileType");
|
|
662
|
+
if (compileType === "plugin") {
|
|
663
|
+
(0, import_shared.set)(projectConfig, "pluginRoot", "dist-plugin");
|
|
664
|
+
}
|
|
660
665
|
cb?.(
|
|
661
666
|
(...args) => {
|
|
662
667
|
(0, import_shared.set)(projectConfig, ...args);
|
package/dist/index.js
CHANGED
|
@@ -424,7 +424,7 @@ var posix = /* @__PURE__ */ mix(":");
|
|
|
424
424
|
var win32 = /* @__PURE__ */ mix(";");
|
|
425
425
|
|
|
426
426
|
// ../../packages/weapp-vite/package.json
|
|
427
|
-
var version = "4.
|
|
427
|
+
var version = "4.1.0";
|
|
428
428
|
|
|
429
429
|
// src/context.ts
|
|
430
430
|
function createContext() {
|
|
@@ -506,6 +506,7 @@ yarn-error.log*
|
|
|
506
506
|
.turbo
|
|
507
507
|
|
|
508
508
|
dist
|
|
509
|
+
dist-plugin
|
|
509
510
|
vite.config.ts.timestamp-*.mjs`;
|
|
510
511
|
}
|
|
511
512
|
|
|
@@ -610,6 +611,10 @@ async function createOrUpdateProjectConfig(options) {
|
|
|
610
611
|
set(projectConfig, "miniprogramRoot", "dist/");
|
|
611
612
|
set(projectConfig, "srcMiniprogramRoot", "dist/");
|
|
612
613
|
set(projectConfig, "setting.packNpmManually", true);
|
|
614
|
+
const compileType = get(projectConfig, "compileType");
|
|
615
|
+
if (compileType === "plugin") {
|
|
616
|
+
set(projectConfig, "pluginRoot", "dist-plugin");
|
|
617
|
+
}
|
|
613
618
|
cb?.(
|
|
614
619
|
(...args) => {
|
|
615
620
|
set(projectConfig, ...args);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weapp-core/init",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"description": "@weapp-core/init",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"fs-extra": "^11.3.0",
|
|
42
|
-
"@weapp-core/logger": "^1.0.
|
|
43
|
-
"@weapp-core/shared": "^1.0.
|
|
42
|
+
"@weapp-core/logger": "^1.0.4",
|
|
43
|
+
"@weapp-core/shared": "^1.0.8"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/semver": "^7.7.0",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-vite-template",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"private": true,
|
|
6
6
|
"description": "原生微信小程序 weapp-vite 模板",
|
|
7
7
|
"author": "ice breaker <1324318532@qq.com>",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"g": "weapp-vite generate"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"miniprogram-api-typings": "^4.0.
|
|
27
|
-
"sass": "^1.
|
|
26
|
+
"miniprogram-api-typings": "^4.0.7",
|
|
27
|
+
"sass": "^1.87.0",
|
|
28
28
|
"typescript": "^5.8.3",
|
|
29
29
|
"weapp-vite": "workspace:*"
|
|
30
30
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-vite-tailwindcss-template",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"private": true,
|
|
6
6
|
"description": "原生微信小程序 weapp-vite + tailwindcss 模板",
|
|
7
7
|
"author": "ice breaker <1324318532@qq.com>",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"@egoist/tailwindcss-icons": "^1.9.0",
|
|
28
28
|
"@iconify-json/mdi": "^1.2.3",
|
|
29
29
|
"autoprefixer": "^10.4.21",
|
|
30
|
-
"miniprogram-api-typings": "^4.0.
|
|
30
|
+
"miniprogram-api-typings": "^4.0.7",
|
|
31
31
|
"postcss": "^8.5.3",
|
|
32
|
-
"sass": "^1.
|
|
32
|
+
"sass": "^1.87.0",
|
|
33
33
|
"tailwindcss": "^3.4.17",
|
|
34
34
|
"typescript": "^5.8.3",
|
|
35
|
-
"weapp-tailwindcss": "^4.1.
|
|
35
|
+
"weapp-tailwindcss": "^4.1.7",
|
|
36
36
|
"weapp-vite": "workspace:*"
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-vite-tailwindcss-tdesign-template",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"private": true,
|
|
6
6
|
"description": "原生微信小程序 weapp-vite + tailwindcss + tdesign 模板",
|
|
7
7
|
"author": "ice breaker <1324318532@qq.com>",
|
|
@@ -24,18 +24,18 @@
|
|
|
24
24
|
"postinstall": "weapp-tw patch"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"tdesign-miniprogram": "^1.
|
|
27
|
+
"tdesign-miniprogram": "^1.9.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@egoist/tailwindcss-icons": "^1.9.0",
|
|
31
31
|
"@iconify-json/mdi": "^1.2.3",
|
|
32
32
|
"autoprefixer": "^10.4.21",
|
|
33
|
-
"miniprogram-api-typings": "^4.0.
|
|
33
|
+
"miniprogram-api-typings": "^4.0.7",
|
|
34
34
|
"postcss": "^8.5.3",
|
|
35
|
-
"sass": "^1.
|
|
35
|
+
"sass": "^1.87.0",
|
|
36
36
|
"tailwindcss": "^3.4.17",
|
|
37
37
|
"typescript": "^5.8.3",
|
|
38
|
-
"weapp-tailwindcss": "^4.1.
|
|
38
|
+
"weapp-tailwindcss": "^4.1.7",
|
|
39
39
|
"weapp-vite": "workspace:*"
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-vite-tailwindcss-vant-template",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"private": true,
|
|
6
6
|
"description": "原生微信小程序 weapp-vite + tailwindcss 模板",
|
|
7
7
|
"author": "ice breaker <1324318532@qq.com>",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"@egoist/tailwindcss-icons": "^1.9.0",
|
|
31
31
|
"@iconify-json/mdi": "^1.2.3",
|
|
32
32
|
"autoprefixer": "^10.4.21",
|
|
33
|
-
"miniprogram-api-typings": "^4.0.
|
|
33
|
+
"miniprogram-api-typings": "^4.0.7",
|
|
34
34
|
"postcss": "^8.5.3",
|
|
35
|
-
"sass": "^1.
|
|
35
|
+
"sass": "^1.87.0",
|
|
36
36
|
"tailwindcss": "^3.4.17",
|
|
37
37
|
"typescript": "^5.8.3",
|
|
38
|
-
"weapp-tailwindcss": "^4.1.
|
|
38
|
+
"weapp-tailwindcss": "^4.1.7",
|
|
39
39
|
"weapp-vite": "workspace:*"
|
|
40
40
|
}
|
|
41
41
|
}
|