create-liuli
Advanced tools
Comparing version 0.8.0 to 0.9.0
import h from "path"; | ||
import { fileURLToPath as g } from "url"; | ||
import { createRequire as d } from "module"; | ||
import { fileURLToPath as d } from "url"; | ||
import { createRequire as g } from "module"; | ||
import { Command as v } from "commander"; | ||
@@ -9,5 +9,5 @@ import n from "node:path"; | ||
import { fileURLToPath as P } from "node:url"; | ||
import { access as b, readFile as j, writeFile as O, readdir as l, cp as R } from "node:fs/promises"; | ||
const m = () => g(import.meta.url), _ = () => h.dirname(m()), U = _(), S = m(); | ||
const C = d(import.meta.url), p = (e) => b(e).then(() => !0).catch(() => !1); | ||
import { access as j, readFile as O, writeFile as R, readdir as l, cp as b } from "node:fs/promises"; | ||
const m = () => d(import.meta.url), _ = () => h.dirname(m()), U = _(), S = m(); | ||
const C = g(import.meta.url), p = (e) => j(e).then(() => !0).catch(() => !1); | ||
function f(e) { | ||
@@ -23,4 +23,4 @@ if (!e.startsWith("@")) | ||
async function u(e, t) { | ||
const a = await j(e, "utf-8"); | ||
await O(e, t(a)); | ||
const a = await O(e, "utf-8"); | ||
await R(e, t(a)); | ||
} | ||
@@ -33,3 +33,3 @@ async function q(e, t) { | ||
} | ||
const F = ["lib", "cli", "react-chrome-plugin", "react-webapp"]; | ||
const F = ["lib", "cli"]; | ||
async function T(e) { | ||
@@ -65,3 +65,3 @@ const t = [ | ||
return; | ||
await R(r, a, { | ||
await b(r, a, { | ||
filter: (o) => n.basename(o) !== "node_modules", | ||
@@ -81,3 +81,3 @@ force: !0, | ||
} | ||
const x = "0.7.0"; | ||
const x = "0.9.0"; | ||
new v().arguments("[name]").option("--template <template>", "template").option("--overwrite [overwrite]", "is overwrite").action(async (e, t) => { | ||
@@ -84,0 +84,0 @@ const a = await T({ ...t, name: e, cwd: n.resolve() }); |
{ | ||
"name": "create-liuli", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"license": "MIT", | ||
@@ -14,18 +14,19 @@ "type": "module", | ||
"dependencies": { | ||
"commander": "^10.0.1", | ||
"inquirer": "^9.2.3", | ||
"commander": "^12.0.0", | ||
"inquirer": "^9.2.14", | ||
"mustache": "^4.2.0" | ||
}, | ||
"devDependencies": { | ||
"@types/inquirer": "^9.0.3", | ||
"@types/lodash-es": "^4.17.7", | ||
"@types/mustache": "^4.2.2", | ||
"@types/node": "^20.1.4", | ||
"tsx": "^3.12.7", | ||
"typescript": "^5.0.4", | ||
"vite": "^4.3.9", | ||
"vite-node": "^0.32.0", | ||
"vitest": "^1.0.4", | ||
"@liuli-util/fs-extra": "^0.1.0", | ||
"@liuli-util/vite-plugin-node": "^0.7.0" | ||
"@types/fs-extra": "^11.0.4", | ||
"@types/inquirer": "^9.0.7", | ||
"@types/lodash-es": "^4.17.12", | ||
"@types/mustache": "^4.2.5", | ||
"@types/node": "^20.11.16", | ||
"fs-extra": "^11.2.0", | ||
"tsx": "^4.7.0", | ||
"typescript": "^5.3.3", | ||
"vite": "^5.0.12", | ||
"vite-node": "^1.2.2", | ||
"vitest": "^1.2.2", | ||
"@liuli-util/vite-plugin-node": "^0.8.0" | ||
}, | ||
@@ -36,3 +37,7 @@ "publishConfig": { | ||
}, | ||
"homepage": "https://dev.rxliuli.com/dev/create-liuli", | ||
"homepage": "https://dev.rxliuli.com/en/lib/create-liuli", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/rxliuli/liuli-tools/tree/master/packages/create-liuli" | ||
}, | ||
"scripts": { | ||
@@ -39,0 +44,0 @@ "build": "vite build", |
@@ -21,14 +21,14 @@ { | ||
"devDependencies": { | ||
"@liuli-util/vite-plugin-node": "workspace:^", | ||
"@liuli-util/vite-plugin-node": "^0.8.0", | ||
"@types/lodash-es": "^4.17.12", | ||
"@types/node": "^20.10.4", | ||
"@types/node": "^20.11.16", | ||
"typescript": "^5.3.3", | ||
"vite": "^5.0.10", | ||
"vite-node": "^1.0.4", | ||
"vitest": "^1.0.4" | ||
"vite": "^5.0.12", | ||
"vite-node": "^1.2.2", | ||
"vitest": "^1.2.2" | ||
}, | ||
"dependencies": { | ||
"commander": "^11.1.0", | ||
"commander": "^12.0.0", | ||
"lodash-es": "^4.17.21" | ||
} | ||
} |
@@ -22,6 +22,6 @@ { | ||
"devDependencies": { | ||
"@liuli-util/vite-plugin-node": "workspace:^", | ||
"@liuli-util/vite-plugin-node": "^0.8.0", | ||
"typescript": "^5.3.3", | ||
"vite": "^5.0.10", | ||
"vitest": "^1.0.4" | ||
"vite": "^5.0.12", | ||
"vitest": "^1.2.2" | ||
}, | ||
@@ -28,0 +28,0 @@ "publishConfig": { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
1
7661
12
15
150
2
1
+ Addedcommander@12.1.0(transitive)
- Removedcommander@10.0.1(transitive)
Updatedcommander@^12.0.0
Updatedinquirer@^9.2.14