create-alepha 0.15.0 → 0.15.1

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
@@ -17,13 +17,13 @@ var CreateAlephaCoreCommands = class {
17
17
  root: true,
18
18
  description: "Create a new Alepha project",
19
19
  args: t.text({ title: "name" }),
20
- handler: async ({ run: run$1, args }) => {
20
+ handler: async ({ run, args }) => {
21
21
  const name = args;
22
22
  await this.fs.mkdir(name);
23
- await run$1(`cd ${name} && npx alepha@latest init ${name}`, { alias: "creating project" });
24
- await run$1(`cd ${name} && npx alepha lint`, { alias: "alepha lint" });
25
- await run$1(`cd ${name} && npx alepha typecheck`, { alias: "alepha typecheck" });
26
- await run$1(`cd ${name} && npx alepha build`, { alias: "alepha build" });
23
+ await run(`cd ${name} && npx alepha@latest init ${name}`, { alias: "creating project" });
24
+ await run(`cd ${name} && npx alepha lint`, { alias: "alepha lint" });
25
+ await run(`cd ${name} && npx alepha typecheck`, { alias: "alepha typecheck" });
26
+ await run(`cd ${name} && npx alepha build`, { alias: "alepha build" });
27
27
  }
28
28
  });
29
29
  };
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["run"],"sources":["../src/CreateAlephaCoreCommands.ts","../src/version.ts","../src/index.ts"],"sourcesContent":["import { $inject, t } from \"alepha\";\nimport { $command, CliProvider } from \"alepha/command\";\nimport { FileSystemProvider } from \"alepha/file\";\nimport { $logger } from \"alepha/logger\";\n\nexport class CreateAlephaCoreCommands {\n protected readonly log = $logger();\n protected readonly cli = $inject(CliProvider);\n protected readonly fs = $inject(FileSystemProvider);\n\n /**\n * Called when no command is provided - delegates to alepha init\n */\n public readonly root = $command({\n root: true,\n description: \"Create a new Alepha project\",\n args: t.text({\n title: \"name\",\n }),\n handler: async ({ run, args }) => {\n const name = args;\n\n // create directory\n await this.fs.mkdir(name);\n\n // Delegate to alepha init command\n await run(`cd ${name} && npx alepha@latest init ${name}`, {\n alias: \"creating project\",\n });\n\n await run(`cd ${name} && npx alepha lint`, {\n alias: \"alepha lint\",\n });\n\n await run(`cd ${name} && npx alepha typecheck`, {\n alias: \"alepha typecheck\",\n });\n\n await run(`cd ${name} && npx alepha build`, {\n alias: \"alepha build\",\n });\n },\n });\n}\n","import { readFileSync } from \"node:fs\";\n\nconst packageJson = JSON.parse(\n readFileSync(new URL(\"../package.json\", import.meta.url), \"utf-8\"),\n);\n\nexport const version = packageJson.version;\n","#!/usr/bin/env node\nimport { Alepha, run } from \"alepha\";\nimport { CreateAlephaCoreCommands } from \"./CreateAlephaCoreCommands.ts\";\nimport { version } from \"./version.ts\";\n\nconst alepha = Alepha.create({\n env: {\n LOG_LEVEL: \"alepha.core:warn,info\",\n LOG_FORMAT: \"raw\",\n CLI_NAME: \"create-alepha\",\n CLI_DESCRIPTION: `Create Alepha v${version} - Create a new Alepha project.`,\n },\n});\n\nalepha.with(CreateAlephaCoreCommands);\n\nrun(alepha);\n"],"mappings":";;;;;;;;AAKA,IAAa,2BAAb,MAAsC;CACpC,AAAmB,MAAM,SAAS;CAClC,AAAmB,MAAM,QAAQ,YAAY;CAC7C,AAAmB,KAAK,QAAQ,mBAAmB;;;;CAKnD,AAAgB,OAAO,SAAS;EAC9B,MAAM;EACN,aAAa;EACb,MAAM,EAAE,KAAK,EACX,OAAO,QACR,CAAC;EACF,SAAS,OAAO,EAAE,YAAK,WAAW;GAChC,MAAM,OAAO;AAGb,SAAM,KAAK,GAAG,MAAM,KAAK;AAGzB,SAAMA,MAAI,MAAM,KAAK,6BAA6B,QAAQ,EACxD,OAAO,oBACR,CAAC;AAEF,SAAMA,MAAI,MAAM,KAAK,sBAAsB,EACzC,OAAO,eACR,CAAC;AAEF,SAAMA,MAAI,MAAM,KAAK,2BAA2B,EAC9C,OAAO,oBACR,CAAC;AAEF,SAAMA,MAAI,MAAM,KAAK,uBAAuB,EAC1C,OAAO,gBACR,CAAC;;EAEL,CAAC;;;;;ACxCJ,MAAM,cAAc,KAAK,MACvB,aAAa,IAAI,IAAI,mBAAmB,OAAO,KAAK,IAAI,EAAE,QAAQ,CACnE;AAED,MAAa,UAAU,YAAY;;;;ACDnC,MAAM,SAAS,OAAO,OAAO,EAC3B,KAAK;CACH,WAAW;CACX,YAAY;CACZ,UAAU;CACV,iBAAiB,kBAAkB,QAAQ;CAC5C,EACF,CAAC;AAEF,OAAO,KAAK,yBAAyB;AAErC,IAAI,OAAO"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/CreateAlephaCoreCommands.ts","../src/version.ts","../src/index.ts"],"sourcesContent":["import { $inject, t } from \"alepha\";\nimport { $command, CliProvider } from \"alepha/command\";\nimport { FileSystemProvider } from \"alepha/file\";\nimport { $logger } from \"alepha/logger\";\n\nexport class CreateAlephaCoreCommands {\n protected readonly log = $logger();\n protected readonly cli = $inject(CliProvider);\n protected readonly fs = $inject(FileSystemProvider);\n\n /**\n * Called when no command is provided - delegates to alepha init\n */\n public readonly root = $command({\n root: true,\n description: \"Create a new Alepha project\",\n args: t.text({\n title: \"name\",\n }),\n handler: async ({ run, args }) => {\n const name = args;\n\n // create directory\n await this.fs.mkdir(name);\n\n // Delegate to alepha init command\n await run(`cd ${name} && npx alepha@latest init ${name}`, {\n alias: \"creating project\",\n });\n\n await run(`cd ${name} && npx alepha lint`, {\n alias: \"alepha lint\",\n });\n\n await run(`cd ${name} && npx alepha typecheck`, {\n alias: \"alepha typecheck\",\n });\n\n await run(`cd ${name} && npx alepha build`, {\n alias: \"alepha build\",\n });\n },\n });\n}\n","import { readFileSync } from \"node:fs\";\n\nconst packageJson = JSON.parse(\n readFileSync(new URL(\"../package.json\", import.meta.url), \"utf-8\"),\n);\n\nexport const version = packageJson.version;\n","#!/usr/bin/env node\nimport { Alepha, run } from \"alepha\";\nimport { CreateAlephaCoreCommands } from \"./CreateAlephaCoreCommands.ts\";\nimport { version } from \"./version.ts\";\n\nconst alepha = Alepha.create({\n env: {\n LOG_LEVEL: \"alepha.core:warn,info\",\n LOG_FORMAT: \"raw\",\n CLI_NAME: \"create-alepha\",\n CLI_DESCRIPTION: `Create Alepha v${version} - Create a new Alepha project.`,\n },\n});\n\nalepha.with(CreateAlephaCoreCommands);\n\nrun(alepha);\n"],"mappings":";;;;;;;;AAKA,IAAa,2BAAb,MAAsC;CACpC,AAAmB,MAAM,SAAS;CAClC,AAAmB,MAAM,QAAQ,YAAY;CAC7C,AAAmB,KAAK,QAAQ,mBAAmB;;;;CAKnD,AAAgB,OAAO,SAAS;EAC9B,MAAM;EACN,aAAa;EACb,MAAM,EAAE,KAAK,EACX,OAAO,QACR,CAAC;EACF,SAAS,OAAO,EAAE,KAAK,WAAW;GAChC,MAAM,OAAO;AAGb,SAAM,KAAK,GAAG,MAAM,KAAK;AAGzB,SAAM,IAAI,MAAM,KAAK,6BAA6B,QAAQ,EACxD,OAAO,oBACR,CAAC;AAEF,SAAM,IAAI,MAAM,KAAK,sBAAsB,EACzC,OAAO,eACR,CAAC;AAEF,SAAM,IAAI,MAAM,KAAK,2BAA2B,EAC9C,OAAO,oBACR,CAAC;AAEF,SAAM,IAAI,MAAM,KAAK,uBAAuB,EAC1C,OAAO,gBACR,CAAC;;EAEL,CAAC;;;;;ACxCJ,MAAM,cAAc,KAAK,MACvB,aAAa,IAAI,IAAI,mBAAmB,OAAO,KAAK,IAAI,EAAE,QAAQ,CACnE;AAED,MAAa,UAAU,YAAY;;;;ACDnC,MAAM,SAAS,OAAO,OAAO,EAC3B,KAAK;CACH,WAAW;CACX,YAAY;CACZ,UAAU;CACV,iBAAiB,kBAAkB,QAAQ;CAC5C,EACF,CAAC;AAEF,OAAO,KAAK,yBAAyB;AAErC,IAAI,OAAO"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "create-alepha",
3
3
  "description": "Create a new Alepha project with a single command.",
4
4
  "author": "Nicolas Foures",
5
- "version": "0.15.0",
5
+ "version": "0.15.1",
6
6
  "type": "module",
7
7
  "engines": {
8
8
  "node": ">=22.0.0"
@@ -14,11 +14,11 @@
14
14
  "src"
15
15
  ],
16
16
  "dependencies": {
17
- "alepha": "0.15.0"
17
+ "alepha": "0.15.1"
18
18
  },
19
19
  "devDependencies": {
20
- "tsdown": "^0.20.0-beta.3",
21
- "vitest": "^4.0.17"
20
+ "tsdown": "^0.20.1",
21
+ "vitest": "^4.0.18"
22
22
  },
23
23
  "scripts": {
24
24
  "lint": "biome check --fix",