@zessjs/cli 1.0.3 → 1.0.6

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 CHANGED
@@ -45,7 +45,7 @@ Then open your browser and visit:
45
45
 
46
46
  The Zess CLI is compatible with:
47
47
 
48
- - Node.js >=18.0.0
48
+ - Node.js >=18.12.0
49
49
 
50
50
  ## 📝 License
51
51
 
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ import gradient from "gradient-string";
12
12
  import pc from "picocolors";
13
13
 
14
14
  //#region package.json
15
- var version = "1.0.1";
15
+ var version = "1.0.6";
16
16
  var description = "Zess CLI tool 🔨 For easily creating Vite-powered Zess project.";
17
17
 
18
18
  //#endregion
@@ -76,8 +76,8 @@ async function copyTemplateFiles(projectPath, projectName, useTypeScript) {
76
76
  await copyDirectory(path.join(templatePath, "common"), projectPath, {
77
77
  ".gitignore": async (srcPath, destPath) => {
78
78
  if (!existsSync(destPath)) return true;
79
- const srcGitignore = await readFile(srcPath, "utf-8");
80
- const destGitignore = await readFile(destPath, "utf-8");
79
+ const srcGitignore = await readFile(srcPath, "utf8");
80
+ const destGitignore = await readFile(destPath, "utf8");
81
81
  await writeFile(destPath, `${destGitignore}\n${srcGitignore}`);
82
82
  },
83
83
  "package.json": async (srcPath, destPath) => {
@@ -85,7 +85,7 @@ async function copyTemplateFiles(projectPath, projectName, useTypeScript) {
85
85
  },
86
86
  "README.md": async (srcPath, destPath) => {
87
87
  if (projectName === name) return true;
88
- const srcReadme = await readFile(srcPath, "utf-8");
88
+ const srcReadme = await readFile(srcPath, "utf8");
89
89
  await writeFile(destPath, srcReadme.replace(name, projectName));
90
90
  }
91
91
  });
@@ -110,15 +110,15 @@ async function copyDirectory(srcDir, destDir, handlers) {
110
110
  }
111
111
  }
112
112
  async function mergePackageJson(srcPath, destPath, projectName, useTypeScript) {
113
- let srcPackageJson = JSON.parse(await readFile(srcPath, "utf-8"));
113
+ let srcPackageJson = JSON.parse(await readFile(srcPath, "utf8"));
114
114
  if (existsSync(destPath)) {
115
- const destPackageJson = JSON.parse(await readFile(destPath, "utf-8"));
115
+ const destPackageJson = JSON.parse(await readFile(destPath, "utf8"));
116
116
  Object.assign(destPackageJson.dependencies, srcPackageJson.dependencies);
117
117
  Object.assign(destPackageJson.devDependencies, srcPackageJson.devDependencies);
118
118
  Object.assign(destPackageJson.scripts, srcPackageJson.scripts);
119
119
  destPackageJson.prettier = srcPackageJson.prettier;
120
120
  srcPackageJson = destPackageJson;
121
- }
121
+ } else srcPackageJson.version = "0.0.0";
122
122
  srcPackageJson.name = projectName;
123
123
  delete srcPackageJson.devDependencies[useTypeScript ? "eslint-plugin-react" : "typescript"];
124
124
  await writeFile(destPath, JSON.stringify(srcPackageJson, null, 2));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zessjs/cli",
3
- "version": "1.0.3",
3
+ "version": "1.0.6",
4
4
  "description": "Zess CLI tool 🔨 For easily creating Vite-powered Zess project.",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -36,7 +36,7 @@
36
36
  "picocolors": "^1.1.1"
37
37
  },
38
38
  "engines": {
39
- "node": ">=18.0.0"
39
+ "node": ">=18.12.0"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "tsdown",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zess-app",
3
- "version": "1.0.3",
3
+ "version": "1.0.6",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -13,14 +13,14 @@
13
13
  },
14
14
  "dependencies": {
15
15
  "@tailwindcss/vite": "^4.1.14",
16
- "@zessjs/core": "^1.0.2",
17
- "@zessjs/router": "^1.0.2",
16
+ "@zessjs/core": "^1.0.6",
17
+ "@zessjs/router": "^1.0.6",
18
18
  "tailwindcss": "^4.1.14"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@sxzz/eslint-config": "^7.2.6",
22
22
  "@sxzz/prettier-config": "^2.2.4",
23
- "@zessjs/vite-plugin": "^1.0.2",
23
+ "@zessjs/vite-plugin": "^1.0.6",
24
24
  "eslint": "^9.36.0",
25
25
  "eslint-plugin-react": "^7.37.5",
26
26
  "jsdom": "^27.0.0",