create-newt-app 0.36.1 → 0.37.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.
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ import { existsSync, promises, readdirSync } from "fs";
11
11
  import path from "path";
12
12
  import https from "node:https";
13
13
  //#region package.json
14
- var version = "0.36.1";
14
+ var version = "0.37.0";
15
15
  var engines = { "node": ">=24.0.0" };
16
16
  //#endregion
17
17
  //#region src/templates/root/index.ts
@@ -14333,13 +14333,13 @@ async function doInit(options) {
14333
14333
  linter: () => p.select({
14334
14334
  message: "Linter and formatter?",
14335
14335
  options: [{
14336
- value: "eslint",
14337
- label: "ESLint + Prettier"
14338
- }, {
14339
14336
  value: "oxc",
14340
14337
  label: "oxlint + oxfmt"
14338
+ }, {
14339
+ value: "eslint",
14340
+ label: "ESLint + Prettier"
14341
14341
  }],
14342
- initialValue: "eslint"
14342
+ initialValue: "oxc"
14343
14343
  }),
14344
14344
  extras: ({ results }) => results.linter === "oxc" ? p.multiselect({
14345
14345
  message: "Extras?",
@@ -14395,7 +14395,7 @@ async function doInit(options) {
14395
14395
  const useStylex = options.nonInteractive ? options.stylex : answers.stylex ?? false;
14396
14396
  const testing = options.nonInteractive ? options.testing : answers.testing ?? "jest";
14397
14397
  const database = options.nonInteractive ? options.database : answers.database ?? "sqlite";
14398
- const linter = options.nonInteractive ? options.linter : answers.linter ?? "eslint";
14398
+ const linter = options.nonInteractive ? options.linter : answers.linter ?? "oxc";
14399
14399
  const deployment = options.nonInteractive ? options.deployment : answers.deployment ?? "none";
14400
14400
  const nest = options.nonInteractive ? options.nest : answers.nest ?? "on";
14401
14401
  const todoExample = options.nonInteractive ? options.includeExample : nest !== "off" && (answers.todoExample ?? true);
@@ -14493,7 +14493,7 @@ async function doInit(options) {
14493
14493
  }
14494
14494
  }
14495
14495
  const program = new Command();
14496
- program.name("create-newt-app").version(version).description("Create a new newt-app monorepo").argument("[name]").option("-ni, --no-install", "Skip pnpm install", true).option("-ng, --no-git", "Skip git initialization", true).option("-y, --yes", "Skip prompts and use the defaults", false).option("--shadcn", "Include shadcn/ui", false).option("--stylex", "Use StyleX instead of Tailwind", false).option("--testing <framework>", "Testing framework: vitest or jest", "jest").option("--database <database>", "Database: sqlite or postgres", "sqlite").option("--linter <linter>", "Linter: eslint or oxc", "eslint").option("--deployment <strategy>", "Deployment: none, standalone, or spa", "none").option("--nest <mode>", "NestJS: on, off, or di-only", "on").option("--include-example", "Include the todo example", false).option("--extras <list>", "Extras, comma-separated: anti-slop", "").action(async (name, options, command) => {
14496
+ program.name("create-newt-app").version(version).description("Create a new newt-app monorepo").argument("[name]").option("-ni, --no-install", "Skip pnpm install", true).option("-ng, --no-git", "Skip git initialization", true).option("-y, --yes", "Skip prompts and use the defaults", false).option("--shadcn", "Include shadcn/ui", false).option("--stylex", "Use StyleX instead of Tailwind", false).option("--testing <framework>", "Testing framework: vitest or jest", "jest").option("--database <database>", "Database: sqlite or postgres", "sqlite").option("--linter <linter>", "Linter: oxc or eslint", "oxc").option("--deployment <strategy>", "Deployment: none, standalone, or spa", "none").option("--nest <mode>", "NestJS: on, off, or di-only", "on").option("--include-example", "Include the todo example", false).option("--extras <list>", "Extras, comma-separated: anti-slop", "").action(async (name, options, command) => {
14497
14497
  intro(`Create a ${chalk.blue("newt")} app.`);
14498
14498
  const explicitFlags = Object.entries({
14499
14499
  shadcn: "--shadcn",