create-vag 0.1.8 → 0.1.10

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
@@ -46,30 +46,3 @@ npm run ci
46
46
  npm run run
47
47
  ```
48
48
 
49
- Upgrade dependencies
50
- --------------------
51
-
52
- ```bash
53
- npm outdated
54
- npm update --save
55
- git commit -am 'npm update --save'
56
- ```
57
- or
58
- ```bash
59
- npx npm-check-updates
60
- npx npm-check-updates --upgrade
61
- npm install
62
- git commit -am 'npx npm-check-updates --upgrade'
63
- ```
64
-
65
- Publish a new release
66
- ---------------------
67
-
68
- ```bash
69
- npm version patch
70
- git push
71
- git push origin v0.5.6
72
- ```
73
-
74
-
75
-
@@ -7,7 +7,7 @@ import chalk from "chalk";
7
7
  // package.json
8
8
  var package_default = {
9
9
  name: "create-vag",
10
- version: "0.1.8",
10
+ version: "0.1.10",
11
11
  description: "The npm-initializer for creating a new vag repo",
12
12
  private: false,
13
13
  repository: {
@@ -83,33 +83,32 @@ var package_default = {
83
83
  clean: "run-s clean:build clean:output"
84
84
  },
85
85
  dependencies: {
86
- "@clack/prompts": "^0.7.0",
86
+ "@clack/prompts": "^0.11.0",
87
87
  chalk: "^5.3.0",
88
88
  handlebars: "^4.7.8"
89
89
  },
90
90
  devDependencies: {
91
- "@eslint/js": "^9.10.0",
91
+ "@eslint/js": "^9.28.0",
92
92
  "@types/eslint__js": "^8.42.3",
93
- "@types/node": "^22.7.4",
94
- eslint: "^9.11.1",
95
- "eslint-config-prettier": "^9.1.0",
93
+ "@types/node": "^22.15.29",
94
+ eslint: "^9.27.0",
95
+ "eslint-config-prettier": "^10.1.5",
96
96
  "npm-run-all": "^4.1.5",
97
- prettier: "^3.3.3",
98
- shx: "^0.3.4",
99
- tsup: "^8.3.0",
100
- typescript: "^5.6.2",
101
- "typescript-eslint": "^8.7.0",
102
- vitest: "^2.1.1"
97
+ prettier: "^3.5.3",
98
+ shx: "^0.4.0",
99
+ tsup: "^8.5.0",
100
+ typescript: "^5.8.3",
101
+ "typescript-eslint": "^8.33.0",
102
+ vitest: "^3.1.4"
103
103
  }
104
104
  };
105
105
 
106
106
  // src/create-vag-cli.ts
107
- import { setTimeout as sleep2 } from "node:timers/promises";
107
+ import { setTimeout as sleep2 } from "timers/promises";
108
108
 
109
109
  // src/create-vag-api.ts
110
- import { setTimeout as sleep } from "node:timers/promises";
111
- import { readFile, writeFile, access, mkdir } from "node:fs/promises";
112
- import { Buffer } from "node:buffer";
110
+ import { setTimeout as sleep } from "timers/promises";
111
+ import { readFile, writeFile, access, mkdir } from "fs/promises";
113
112
  import { dirname, extname } from "path";
114
113
  import Handlebars from "handlebars";
115
114
 
@@ -170,7 +169,7 @@ async function oneFile(onePath, cfg2, preDir2) {
170
169
  const fileIn2 = new URL(`./template/${onePathIn}`, import.meta.url);
171
170
  let fileBin = false;
172
171
  let fileStr2 = "";
173
- let fileBuffer2 = Buffer.alloc(0);
172
+ const outPath = `${preDir2}/${cfg2.repoName}/${onePathOut}`;
174
173
  try {
175
174
  await access(fileIn1);
176
175
  try {
@@ -185,17 +184,16 @@ async function oneFile(onePath, cfg2, preDir2) {
185
184
  if (err) {
186
185
  if (isFileBinary(fileIn2)) {
187
186
  fileBin = true;
188
- fileBuffer2 = await readFile(fileIn2);
187
+ const fileBuffer2 = await readFile(fileIn2);
188
+ await createMissingDir(outPath);
189
+ await writeFile(outPath, fileBuffer2);
189
190
  } else {
190
191
  fileStr2 = await readFile(fileIn2, { encoding: "utf8" });
191
192
  }
192
193
  }
193
194
  }
194
- const outPath = `${preDir2}/${cfg2.repoName}/${onePathOut}`;
195
- await createMissingDir(outPath);
196
- if (fileBin) {
197
- await writeFile(outPath, fileBuffer2);
198
- } else {
195
+ if (!fileBin) {
196
+ await createMissingDir(outPath);
199
197
  await writeFile(outPath, fileStr2);
200
198
  }
201
199
  } catch (err) {
@@ -30,6 +30,6 @@
30
30
  "test": "echo \"Error: no test specified\" && exit 1"
31
31
  },
32
32
  "devDependencies": {
33
- "vag_tools": "^0.0.7"
33
+ "vag_tools": "^0.1.0"
34
34
  }
35
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vag",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "The npm-initializer for creating a new vag repo",
5
5
  "private": false,
6
6
  "repository": {
@@ -76,22 +76,22 @@
76
76
  "clean": "run-s clean:build clean:output"
77
77
  },
78
78
  "dependencies": {
79
- "@clack/prompts": "^0.7.0",
79
+ "@clack/prompts": "^0.11.0",
80
80
  "chalk": "^5.3.0",
81
81
  "handlebars": "^4.7.8"
82
82
  },
83
83
  "devDependencies": {
84
- "@eslint/js": "^9.10.0",
84
+ "@eslint/js": "^9.28.0",
85
85
  "@types/eslint__js": "^8.42.3",
86
- "@types/node": "^22.7.4",
87
- "eslint": "^9.11.1",
88
- "eslint-config-prettier": "^9.1.0",
86
+ "@types/node": "^22.15.29",
87
+ "eslint": "^9.27.0",
88
+ "eslint-config-prettier": "^10.1.5",
89
89
  "npm-run-all": "^4.1.5",
90
- "prettier": "^3.3.3",
91
- "shx": "^0.3.4",
92
- "tsup": "^8.3.0",
93
- "typescript": "^5.6.2",
94
- "typescript-eslint": "^8.7.0",
95
- "vitest": "^2.1.1"
90
+ "prettier": "^3.5.3",
91
+ "shx": "^0.4.0",
92
+ "tsup": "^8.5.0",
93
+ "typescript": "^5.8.3",
94
+ "typescript-eslint": "^8.33.0",
95
+ "vitest": "^3.1.4"
96
96
  }
97
97
  }