create-z3 0.0.18 → 0.0.20
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.js
CHANGED
|
@@ -2114,13 +2114,23 @@ var FrameworkInstaller = class {
|
|
|
2114
2114
|
const packageManager = this.detectPackageManager();
|
|
2115
2115
|
const spinner = ora("Formatting code...").start();
|
|
2116
2116
|
try {
|
|
2117
|
-
await execa(packageManager, ["run", "format"], {
|
|
2117
|
+
const result = await execa(packageManager, ["run", "format"], {
|
|
2118
2118
|
cwd: this.targetPath,
|
|
2119
|
-
stdio: "pipe"
|
|
2119
|
+
stdio: "pipe",
|
|
2120
|
+
reject: false
|
|
2120
2121
|
});
|
|
2121
|
-
|
|
2122
|
+
if (result.exitCode === 0) {
|
|
2123
|
+
spinner.succeed("Code formatted successfully");
|
|
2124
|
+
} else {
|
|
2125
|
+
spinner.warn(`Formatting completed with warnings`);
|
|
2126
|
+
if (result.stderr) {
|
|
2127
|
+
console.log(result.stderr);
|
|
2128
|
+
}
|
|
2129
|
+
}
|
|
2122
2130
|
} catch (error) {
|
|
2123
|
-
|
|
2131
|
+
const errorMessage = error instanceof Error ? error.message : "Unknown error";
|
|
2132
|
+
spinner.warn(`Failed to format code: ${errorMessage}`);
|
|
2133
|
+
console.log("You may need to run `npm run format` manually");
|
|
2124
2134
|
}
|
|
2125
2135
|
}
|
|
2126
2136
|
/**
|
|
@@ -2132,13 +2142,23 @@ var FrameworkInstaller = class {
|
|
|
2132
2142
|
const packageManager = this.detectPackageManager();
|
|
2133
2143
|
const spinner = ora("Linting and fixing code...").start();
|
|
2134
2144
|
try {
|
|
2135
|
-
await execa(packageManager, ["run", "lint", "--", "--fix"], {
|
|
2145
|
+
const result = await execa(packageManager, ["run", "lint", "--", "--fix"], {
|
|
2136
2146
|
cwd: this.targetPath,
|
|
2137
|
-
stdio: "pipe"
|
|
2147
|
+
stdio: "pipe",
|
|
2148
|
+
reject: false
|
|
2138
2149
|
});
|
|
2139
|
-
|
|
2150
|
+
if (result.exitCode === 0) {
|
|
2151
|
+
spinner.succeed("Code linted and fixed successfully");
|
|
2152
|
+
} else {
|
|
2153
|
+
spinner.warn(`Linting completed with warnings`);
|
|
2154
|
+
if (result.stderr) {
|
|
2155
|
+
console.log(result.stderr);
|
|
2156
|
+
}
|
|
2157
|
+
}
|
|
2140
2158
|
} catch (error) {
|
|
2141
|
-
|
|
2159
|
+
const errorMessage = error instanceof Error ? error.message : "Unknown error";
|
|
2160
|
+
spinner.warn(`Failed to lint code: ${errorMessage}`);
|
|
2161
|
+
console.log("You may need to run `npm run lint -- --fix` manually");
|
|
2142
2162
|
}
|
|
2143
2163
|
}
|
|
2144
2164
|
/**
|
package/package.json
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Dependencies
|
|
2
|
+
node_modules
|
|
3
|
+
.pnp
|
|
4
|
+
.pnp.*
|
|
5
|
+
|
|
6
|
+
# Build outputs
|
|
7
|
+
.next
|
|
8
|
+
out
|
|
9
|
+
dist
|
|
10
|
+
build
|
|
11
|
+
|
|
12
|
+
# Generated files
|
|
13
|
+
convex/_generated
|
|
14
|
+
|
|
15
|
+
# Package manager
|
|
16
|
+
pnpm-lock.yaml
|
|
17
|
+
package-lock.json
|
|
18
|
+
yarn.lock
|
|
19
|
+
|
|
20
|
+
# Environment
|
|
21
|
+
.env*
|
|
22
|
+
!.env.example
|
|
23
|
+
|
|
24
|
+
# Misc
|
|
25
|
+
.DS_Store
|
|
26
|
+
*.pem
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
"dev": "next dev --port=3001",
|
|
7
7
|
"build": "next build",
|
|
8
8
|
"start": "next start",
|
|
9
|
-
"lint": "eslint",
|
|
9
|
+
"lint": "eslint .",
|
|
10
|
+
"format": "prettier --write .",
|
|
11
|
+
"typecheck": "tsc --noEmit",
|
|
10
12
|
"secret:create": "openssl rand -base64 32 | tr -d '\\n' | tee /dev/stderr | pbcopy && echo '\\n✓ Secret copied to clipboard'"
|
|
11
13
|
},
|
|
12
14
|
"dependencies": {
|
|
@@ -46,6 +48,7 @@
|
|
|
46
48
|
"eslint-plugin-import-x": "^4.16.1",
|
|
47
49
|
"eslint-plugin-perfectionist": "^5.3.1",
|
|
48
50
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
51
|
+
"prettier": "^3.4.2",
|
|
49
52
|
"tailwindcss": "^4",
|
|
50
53
|
"typescript": "^5",
|
|
51
54
|
"typescript-eslint": "^8.53.0"
|