@quickdapp/cli 3.7.0 → 3.8.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/README.md +10 -5
- package/dist/index.js +5 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,22 +6,27 @@ CLI tool to scaffold new QuickDapp projects.
|
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
# Using bunx (recommended)
|
|
9
|
-
bunx
|
|
9
|
+
bunx @quickdapp/cli create my-project
|
|
10
10
|
|
|
11
11
|
# Using npx
|
|
12
|
-
npx
|
|
12
|
+
npx @quickdapp/cli create my-project
|
|
13
|
+
|
|
14
|
+
# The 'create' command is the default, so this also works:
|
|
15
|
+
bunx @quickdapp/cli my-project
|
|
13
16
|
|
|
14
17
|
# With variant selection
|
|
15
|
-
bunx
|
|
16
|
-
bunx
|
|
18
|
+
bunx @quickdapp/cli create my-project --variant web3 # Web3 variant
|
|
19
|
+
bunx @quickdapp/cli create my-project --variant base # Base (default)
|
|
17
20
|
```
|
|
18
21
|
|
|
19
22
|
## Options
|
|
20
23
|
|
|
21
24
|
| Option | Description |
|
|
22
25
|
|--------|-------------|
|
|
23
|
-
|
|
|
26
|
+
| `-v, --variant <name>` | Choose package variant: `base` or `web3` (default: `base`) |
|
|
24
27
|
| `--skip-install` | Skip running `bun install` after scaffolding |
|
|
28
|
+
| `-r, --release <version>` | Use a specific release version |
|
|
29
|
+
| `--list-versions` | List available QuickDapp versions |
|
|
25
30
|
| `--help` | Show help |
|
|
26
31
|
|
|
27
32
|
## Prerequisites
|
package/dist/index.js
CHANGED
|
@@ -6866,11 +6866,12 @@ class Unpack extends Parser {
|
|
|
6866
6866
|
}
|
|
6867
6867
|
[STRIPABSOLUTEPATH](entry, field) {
|
|
6868
6868
|
const p = entry[field];
|
|
6869
|
+
const { type } = entry;
|
|
6869
6870
|
if (!p || this.preservePaths)
|
|
6870
6871
|
return true;
|
|
6871
6872
|
const parts = p.split("/");
|
|
6872
6873
|
if (parts.includes("..") || isWindows3 && /^[a-z]:\.\.$/i.test(parts[0] ?? "")) {
|
|
6873
|
-
if (field === "path") {
|
|
6874
|
+
if (field === "path" || type === "Link") {
|
|
6874
6875
|
this.warn("TAR_ENTRY_ERROR", `${field} contains '..'`, {
|
|
6875
6876
|
entry,
|
|
6876
6877
|
[field]: p
|
|
@@ -7794,8 +7795,8 @@ Error:`, error instanceof Error ? error.message : String(error));
|
|
|
7794
7795
|
}
|
|
7795
7796
|
}
|
|
7796
7797
|
var program2 = new Command;
|
|
7797
|
-
program2.name("create-quickdapp").description("
|
|
7798
|
-
program2.
|
|
7798
|
+
program2.name("create-quickdapp").description("CLI to scaffold QuickDapp projects").version(CLI_VERSION);
|
|
7799
|
+
program2.command("create [project-name]", { isDefault: true }).description("Create a new QuickDapp project").option("-v, --variant <variant>", "Project variant (base or web3)", "base").option("--skip-install", "Skip running bun install", false).option("-r, --release <version>", "Use a specific release version").option("--list-versions", "List available QuickDapp versions").action(async (projectName, options) => {
|
|
7799
7800
|
if (options.listVersions) {
|
|
7800
7801
|
try {
|
|
7801
7802
|
const releases = await listReleases();
|
|
@@ -7815,7 +7816,7 @@ program2.argument("[project-name]", "Name of the project to create").option("-v,
|
|
|
7815
7816
|
}
|
|
7816
7817
|
if (!projectName) {
|
|
7817
7818
|
console.error("Error: project-name is required");
|
|
7818
|
-
console.error("Usage: create-quickdapp <project-name>");
|
|
7819
|
+
console.error("Usage: create-quickdapp create <project-name>");
|
|
7819
7820
|
process.exit(1);
|
|
7820
7821
|
}
|
|
7821
7822
|
if (!checkPrerequisites()) {
|