@weapp-core/init 2.1.4 → 2.1.5
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 +4 -3
- package/dist/index.js +2 -2
- package/package.json +4 -3
- package/templates/default/package.json +1 -1
- package/templates/tailwindcss/package.json +1 -1
- package/templates/tdesign/package.json +1 -1
- package/templates/vant/package.json +1 -1
- package/templates/default/CHANGELOG.md +0 -9
- package/templates/tailwindcss/CHANGELOG.md +0 -9
- package/templates/tdesign/CHANGELOG.md +0 -9
- package/templates/vant/CHANGELOG.md +0 -9
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.5.0_@swc+core@1.13.5_jiti@2.
|
|
44
|
+
// ../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.13.5_jiti@2.6.0_postcss@8.5.6_tsx@4.20.5_typescript@5.9.2_yaml@2.8.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 = "5.1.
|
|
474
|
+
var version = "5.1.8";
|
|
475
475
|
|
|
476
476
|
// src/context.ts
|
|
477
477
|
function createContext() {
|
|
@@ -668,6 +668,7 @@ export default defineConfig({
|
|
|
668
668
|
}
|
|
669
669
|
|
|
670
670
|
// src/index.ts
|
|
671
|
+
var import_meta = {};
|
|
671
672
|
var __dirname = posix.dirname((0, import_node_url.fileURLToPath)(importMetaUrl));
|
|
672
673
|
var ctx = createContext();
|
|
673
674
|
async function createOrUpdateProjectConfig(options) {
|
|
@@ -890,7 +891,7 @@ async function initConfig(options) {
|
|
|
890
891
|
return ctx;
|
|
891
892
|
}
|
|
892
893
|
async function createProject(targetDir = "", templateName = "default" /* default */) {
|
|
893
|
-
const targetTemplateDir = posix.resolve(
|
|
894
|
+
const targetTemplateDir = posix.resolve(import_meta.dirname, "../templates", templateName);
|
|
894
895
|
if (await import_fs_extra.default.exists(targetTemplateDir)) {
|
|
895
896
|
await import_fs_extra.default.copy(targetTemplateDir, targetDir);
|
|
896
897
|
const pkgJsonPath = posix.resolve(targetTemplateDir, "package.json");
|
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 = "5.1.
|
|
427
|
+
var version = "5.1.8";
|
|
428
428
|
|
|
429
429
|
// src/context.ts
|
|
430
430
|
function createContext() {
|
|
@@ -843,7 +843,7 @@ async function initConfig(options) {
|
|
|
843
843
|
return ctx;
|
|
844
844
|
}
|
|
845
845
|
async function createProject(targetDir = "", templateName = "default" /* default */) {
|
|
846
|
-
const targetTemplateDir = posix.resolve(
|
|
846
|
+
const targetTemplateDir = posix.resolve(import.meta.dirname, "../templates", templateName);
|
|
847
847
|
if (await fs.exists(targetTemplateDir)) {
|
|
848
848
|
await fs.copy(targetTemplateDir, targetDir);
|
|
849
849
|
const pkgJsonPath = posix.resolve(targetTemplateDir, "package.json");
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weapp-core/init",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.5",
|
|
5
5
|
"description": "@weapp-core/init",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -39,11 +39,12 @@
|
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"fs-extra": "^11.3.2",
|
|
42
|
-
"@weapp-core/
|
|
43
|
-
"@weapp-core/
|
|
42
|
+
"@weapp-core/logger": "^2.0.0",
|
|
43
|
+
"@weapp-core/shared": "^2.0.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/semver": "^7.7.1",
|
|
47
|
+
"fdir": "^6.5.0",
|
|
47
48
|
"semver": "^7.7.2"
|
|
48
49
|
},
|
|
49
50
|
"scripts": {
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# weapp-vite-tailwindcss-template
|
|
2
|
-
|
|
3
|
-
## 1.0.2
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- [`0ae2a53`](https://github.com/weapp-vite/weapp-vite/commit/0ae2a53198b8d3ab3e8a9ac18ee125e2017a8f51) Thanks [@sonofmagic](https://github.com/sonofmagic)! - chore: change website url
|
|
8
|
-
|
|
9
|
-
## 1.0.1
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# weapp-vite-tailwindcss-tdesign-template
|
|
2
|
-
|
|
3
|
-
## 1.0.2
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- [`0ae2a53`](https://github.com/weapp-vite/weapp-vite/commit/0ae2a53198b8d3ab3e8a9ac18ee125e2017a8f51) Thanks [@sonofmagic](https://github.com/sonofmagic)! - chore: change website url
|
|
8
|
-
|
|
9
|
-
## 1.0.1
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# weapp-vite-tailwindcss-vant-template
|
|
2
|
-
|
|
3
|
-
## 1.0.2
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- [`0ae2a53`](https://github.com/weapp-vite/weapp-vite/commit/0ae2a53198b8d3ab3e8a9ac18ee125e2017a8f51) Thanks [@sonofmagic](https://github.com/sonofmagic)! - chore: change website url
|
|
8
|
-
|
|
9
|
-
## 1.0.1
|