@mochi-css/tsuki 1.1.0 → 2.0.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.
Files changed (2) hide show
  1. package/dist/index.js +8 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -97,7 +97,7 @@ async function runInstall(title, command, args, packages) {
97
97
  const [code] = await onceEvent(child, "close");
98
98
  await drain;
99
99
  if (code !== 0) throw new Error(`Failed to install packages: ${packages.join(", ")}`);
100
- log.success(`${packages.join(", ")} has been installed installed!`);
100
+ log.success(`${packages.join(", ")} has been installed!`);
101
101
  } catch (err) {
102
102
  log.error(err instanceof Error ? err.message : String(err));
103
103
  throw err;
@@ -313,7 +313,7 @@ function createPostcssModule(options = {}) {
313
313
  configPath = selected;
314
314
  }
315
315
  await addToConfig(configPath, pluginOptions);
316
- __clack_prompts.log.step("Added mochi plugin to the postcss config");
316
+ __clack_prompts.log.success("Added mochi plugin to the postcss config");
317
317
  ctx.requirePackage("@mochi-css/postcss");
318
318
  }
319
319
  };
@@ -326,6 +326,7 @@ const libPreset = {
326
326
  id: "lib",
327
327
  name: "Library",
328
328
  setup(runner) {
329
+ __clack_prompts.log.warn("Library preset is not fully supported yet.");
329
330
  runner.register(createPostcssModule());
330
331
  }
331
332
  };
@@ -439,10 +440,10 @@ const viteModule = {
439
440
  } else configPath = existingConfig;
440
441
  if (!fs_extra.default.existsSync(configPath)) {
441
442
  await fs_promises.default.writeFile(configPath, defaultViteConfig);
442
- __clack_prompts.log.step("Created vite config with mochi plugin");
443
+ __clack_prompts.log.success("Created vite config with mochi plugin");
443
444
  } else {
444
445
  await addMochiToViteConfig(configPath);
445
- __clack_prompts.log.step("Added mochiCss() to vite config");
446
+ __clack_prompts.log.success("Added mochiCss() to vite config");
446
447
  }
447
448
  ctx.requirePackage("@mochi-css/vite");
448
449
  }
@@ -514,10 +515,10 @@ const nextModule = {
514
515
  } else configPath = existingConfig;
515
516
  if (!fs_extra.default.existsSync(configPath)) {
516
517
  await fs_promises.default.writeFile(configPath, defaultNextConfig);
517
- __clack_prompts.log.step("Created next config with mochi");
518
+ __clack_prompts.log.success("Created next config with mochi");
518
519
  } else {
519
520
  await addMochiToNextConfig(configPath);
520
- __clack_prompts.log.step("Added withMochi() to next config");
521
+ __clack_prompts.log.success("Added withMochi() to next config");
521
522
  }
522
523
  ctx.requirePackage("@mochi-css/next");
523
524
  }
@@ -547,7 +548,7 @@ const presets = {
547
548
 
548
549
  //#endregion
549
550
  //#region src/index.ts
550
- commander.program.name("tsuki").description("Add mochi-css to your project").version("1.1.0").addOption(new commander.Option("-p, --preset <preset>", "Preset to use").choices([
551
+ commander.program.name("tsuki").description("Add mochi-css to your project").version("2.0.0").addOption(new commander.Option("-p, --preset <preset>", "Preset to use").choices([
551
552
  "vite",
552
553
  "nextjs",
553
554
  "lib"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mochi-css/tsuki",
3
3
  "repository": "git@github.com:Niikelion/mochi-css.git",
4
- "version": "1.1.0",
4
+ "version": "2.0.0",
5
5
  "license": "MIT",
6
6
  "bin": "./dist/index.js",
7
7
  "files": [