create-pubinfo 2.0.2 → 2.0.3

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 PUBINFO 腾龙框架
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { bootstrop, readPackageJSON, run, validateInput } from "./helper-D73z-FZU.js";
2
+ import { bootstrop, readPackageJSON, run, validateInput } from "./helper-CZfznJGY.js";
3
3
  import { checkbox, confirm, input, select } from "@inquirer/prompts";
4
4
  import { Command } from "commander";
5
5
  import consola from "consola";
@@ -1,6 +1,6 @@
1
1
  import { confirm, input, select } from "@inquirer/prompts";
2
2
  import consola from "consola";
3
- import { dirname, resolve } from "node:path";
3
+ import { dirname, relative, resolve } from "node:path";
4
4
  import process, { cwd } from "node:process";
5
5
  import { fileURLToPath } from "node:url";
6
6
  import { copy } from "fs-extra";
@@ -44,7 +44,7 @@ async function generate(options) {
44
44
  const entries = await fs.promises.readdir(dir, { withFileTypes: true });
45
45
  for (const e of entries) {
46
46
  const srcPath = resolve(dir, e.name);
47
- const rel = srcPath.replace(`${baseDir}/`, "");
47
+ const rel = relative(baseDir, srcPath);
48
48
  if (e.isDirectory()) {
49
49
  await walk(srcPath);
50
50
  continue;
@@ -132,7 +132,7 @@ async function run(version$1) {
132
132
  //#region package.json
133
133
  var name = "create-pubinfo";
134
134
  var type = "module";
135
- var version = "2.0.2";
135
+ var version = "2.0.3";
136
136
  var description = "初始化项目框架";
137
137
  var author = "Werheng <werheng.zhang@gmail.com>";
138
138
  var license = "MIT";
@@ -160,7 +160,7 @@ var dependencies = {
160
160
  "commander": "catalog:node",
161
161
  "confbox": "catalog:node",
162
162
  "consola": "catalog:browser",
163
- "fs-extra": "^11.3.2",
163
+ "fs-extra": "catalog:node",
164
164
  "giget": "catalog:node",
165
165
  "node-plop": "catalog:node",
166
166
  "ofetch": "catalog:http",
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { copyTemplate, generate, interaction, readPackageJSON, run } from "./helper-D73z-FZU.js";
1
+ import { copyTemplate, generate, interaction, readPackageJSON, run } from "./helper-CZfznJGY.js";
2
2
 
3
3
  export { copyTemplate, generate, interaction, readPackageJSON, run };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-pubinfo",
3
3
  "type": "module",
4
- "version": "2.0.2",
4
+ "version": "2.0.3",
5
5
  "description": "初始化项目框架",
6
6
  "author": "Werheng <werheng.zhang@gmail.com>",
7
7
  "license": "MIT",
@@ -31,7 +31,7 @@
31
31
  "commander": "^14.0.0",
32
32
  "confbox": "^0.2.2",
33
33
  "consola": "^3.4.2",
34
- "fs-extra": "^11.3.2",
34
+ "fs-extra": "^11.3.0",
35
35
  "giget": "^2.0.0",
36
36
  "node-plop": "0.32.1",
37
37
  "ofetch": "^1.4.1",