@knotx/cli 0.2.2 → 0.2.4

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.cjs CHANGED
@@ -239,7 +239,7 @@ function createPackageJson(targetDir, pluginName, environment, knotxVersions) {
239
239
  "dist"
240
240
  ],
241
241
  scripts: {
242
- build: "unbuild --failOnWarn=false",
242
+ build: "unbuild",
243
243
  dev: "cd ./playground && vite",
244
244
  lint: "eslint .",
245
245
  typecheck: "tsc --noEmit"
@@ -255,10 +255,10 @@ function createPackageJson(targetDir, pluginName, environment, knotxVersions) {
255
255
  "@knotx/build-config": knotxVersions["@knotx/build-config"],
256
256
  "@knotx/eslint-config": knotxVersions["@knotx/eslint-config"],
257
257
  "@knotx/typescript-config": knotxVersions["@knotx/typescript-config"],
258
+ "@knotx/unbuild": "^3.5.0",
258
259
  "@types/node": "^22.13.5",
259
260
  "eslint": "^9.23.0",
260
261
  "typescript": "^5.7.3",
261
- "unbuild": "^3.3.1",
262
262
  "vite": "^6.1.0",
263
263
  "vitest": "^3.0.0"
264
264
  }
@@ -336,10 +336,10 @@ function createConfigFiles(targetDir) {
336
336
  try {
337
337
  const tsconfigTemplate = yield fs__default.readFile(safeResolvePath(templatesDir, "tsconfig.json.template"), "utf-8");
338
338
  const buildConfigTemplate = yield fs__default.readFile(safeResolvePath(templatesDir, "build.config.ts.template"), "utf-8");
339
- const eslintConfigTemplate = yield fs__default.readFile(safeResolvePath(templatesDir, "eslint.config.js.template"), "utf-8");
339
+ const eslintConfigTemplate = yield fs__default.readFile(safeResolvePath(templatesDir, "eslint.config.mjs.template"), "utf-8");
340
340
  yield fs__default.writeFile(safeResolvePath(targetDir, "tsconfig.json"), tsconfigTemplate);
341
341
  yield fs__default.writeFile(safeResolvePath(targetDir, "build.config.ts"), buildConfigTemplate);
342
- yield fs__default.writeFile(safeResolvePath(targetDir, "eslint.config.js"), eslintConfigTemplate);
342
+ yield fs__default.writeFile(safeResolvePath(targetDir, "eslint.config.mjs"), eslintConfigTemplate);
343
343
  } catch (error) {
344
344
  console.error("\u65E0\u6CD5\u8BFB\u53D6\u6A21\u677F\u6587\u4EF6:", error);
345
345
  const tsconfig = {
@@ -360,7 +360,7 @@ function createConfigFiles(targetDir) {
360
360
  'import { defineBuildConfig } from "@knotx/build-config";\n\nexport default defineBuildConfig();'
361
361
  );
362
362
  yield fs__default.writeFile(
363
- safeResolvePath(targetDir, "eslint.config.js"),
363
+ safeResolvePath(targetDir, "eslint.config.mjs"),
364
364
  "export { default } from '@knotx/eslint-config';"
365
365
  );
366
366
  }
package/dist/index.js CHANGED
@@ -228,7 +228,7 @@ function createPackageJson(targetDir, pluginName, environment, knotxVersions) {
228
228
  "dist"
229
229
  ],
230
230
  scripts: {
231
- build: "unbuild --failOnWarn=false",
231
+ build: "unbuild",
232
232
  dev: "cd ./playground && vite",
233
233
  lint: "eslint .",
234
234
  typecheck: "tsc --noEmit"
@@ -244,10 +244,10 @@ function createPackageJson(targetDir, pluginName, environment, knotxVersions) {
244
244
  "@knotx/build-config": knotxVersions["@knotx/build-config"],
245
245
  "@knotx/eslint-config": knotxVersions["@knotx/eslint-config"],
246
246
  "@knotx/typescript-config": knotxVersions["@knotx/typescript-config"],
247
+ "@knotx/unbuild": "^3.5.0",
247
248
  "@types/node": "^22.13.5",
248
249
  "eslint": "^9.23.0",
249
250
  "typescript": "^5.7.3",
250
- "unbuild": "^3.3.1",
251
251
  "vite": "^6.1.0",
252
252
  "vitest": "^3.0.0"
253
253
  }
@@ -325,10 +325,10 @@ function createConfigFiles(targetDir) {
325
325
  try {
326
326
  const tsconfigTemplate = yield fs.readFile(safeResolvePath(templatesDir, "tsconfig.json.template"), "utf-8");
327
327
  const buildConfigTemplate = yield fs.readFile(safeResolvePath(templatesDir, "build.config.ts.template"), "utf-8");
328
- const eslintConfigTemplate = yield fs.readFile(safeResolvePath(templatesDir, "eslint.config.js.template"), "utf-8");
328
+ const eslintConfigTemplate = yield fs.readFile(safeResolvePath(templatesDir, "eslint.config.mjs.template"), "utf-8");
329
329
  yield fs.writeFile(safeResolvePath(targetDir, "tsconfig.json"), tsconfigTemplate);
330
330
  yield fs.writeFile(safeResolvePath(targetDir, "build.config.ts"), buildConfigTemplate);
331
- yield fs.writeFile(safeResolvePath(targetDir, "eslint.config.js"), eslintConfigTemplate);
331
+ yield fs.writeFile(safeResolvePath(targetDir, "eslint.config.mjs"), eslintConfigTemplate);
332
332
  } catch (error) {
333
333
  console.error("\u65E0\u6CD5\u8BFB\u53D6\u6A21\u677F\u6587\u4EF6:", error);
334
334
  const tsconfig = {
@@ -349,7 +349,7 @@ function createConfigFiles(targetDir) {
349
349
  'import { defineBuildConfig } from "@knotx/build-config";\n\nexport default defineBuildConfig();'
350
350
  );
351
351
  yield fs.writeFile(
352
- safeResolvePath(targetDir, "eslint.config.js"),
352
+ safeResolvePath(targetDir, "eslint.config.mjs"),
353
353
  "export { default } from '@knotx/eslint-config';"
354
354
  );
355
355
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knotx/cli",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "CLI tool for Knotx",
5
5
  "author": "boenfu",
6
6
  "license": "MIT",
@@ -40,12 +40,12 @@
40
40
  "devDependencies": {
41
41
  "@types/fs-extra": "^11.0.4",
42
42
  "@types/inquirer": "^9.0.7",
43
- "@knotx/build-config": "0.2.2",
44
- "@knotx/eslint-config": "0.2.2",
45
- "@knotx/typescript-config": "0.2.2"
43
+ "@knotx/build-config": "0.2.4",
44
+ "@knotx/eslint-config": "0.2.4",
45
+ "@knotx/typescript-config": "0.2.4"
46
46
  },
47
47
  "scripts": {
48
- "build": "unbuild --failOnWarn=false",
48
+ "build": "unbuild",
49
49
  "dev": "unbuild --stub",
50
50
  "lint": "eslint .",
51
51
  "typecheck": "tsc --noEmit"
@@ -1,4 +1 @@
1
- import { buildConfig } from '@knotx/build-config'
2
- import { defineBuildConfig } from 'unbuild'
3
-
4
- export default defineBuildConfig(buildConfig)
1
+ export { defaultBuildConfig as default } from '@knotx/build-config'