@kiln-js/cli 0.1.2 → 0.1.3

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 +9 -9
  2. package/package.json +26 -26
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import { cac } from "cac";
7
7
  // src/dev.ts
8
8
  import http from "http";
9
9
  import { createServer as createViteServer } from "vite";
10
- import { kiln } from "@kiln/vite-plugin";
10
+ import { kiln } from "@kiln-js/vite-plugin";
11
11
 
12
12
  // src/paths.ts
13
13
  import path from "path";
@@ -36,11 +36,11 @@ declare global {
36
36
  }
37
37
  }
38
38
  `;
39
- var DEFAULT_CLIENT = `import { createClient } from "@kiln/client";
39
+ var DEFAULT_CLIENT = `import { createClient } from "@kiln-js/client";
40
40
 
41
41
  createClient().then((client) => client.start());
42
42
  `;
43
- var DEFAULT_SERVER = `import { createAppHandler, type KilnAssets } from "@kiln/server";
43
+ var DEFAULT_SERVER = `import { createAppHandler, type KilnAssets } from "@kiln-js/server";
44
44
 
45
45
  export function createHandler(assets: KilnAssets) {
46
46
  return createAppHandler({ assets });
@@ -497,8 +497,8 @@ async function startDev(port) {
497
497
  import fs3 from "fs";
498
498
  import path4 from "path";
499
499
  import { build } from "vite";
500
- import { kiln as kiln2 } from "@kiln/vite-plugin";
501
- import { adaptVercel } from "@kiln/adapter-vercel";
500
+ import { kiln as kiln2 } from "@kiln-js/vite-plugin";
501
+ import { adaptVercel } from "@kiln-js/adapter-vercel";
502
502
  var TARGETS = ["none", "vercel"];
503
503
  function dirSize(dir) {
504
504
  if (!fs3.existsSync(dir))
@@ -697,7 +697,7 @@ async function runStart(port) {
697
697
  // src/routes.ts
698
698
  import fs4 from "fs";
699
699
  import path6 from "path";
700
- import { scanRoutes, scanApi } from "@kiln/core/scan";
700
+ import { scanRoutes, scanApi } from "@kiln-js/core/scan";
701
701
  var METHOD_RE = /export\s+(?:async\s+)?(?:function|const)\s+(GET|POST|PUT|PATCH|DELETE|HEAD|OPTIONS)\b/g;
702
702
  var MODE_COLORS = {
703
703
  universal: colors.mint,
@@ -739,9 +739,9 @@ import path7 from "path";
739
739
  import inquirer from "inquirer";
740
740
 
741
741
  // src/templates.ts
742
- var SCOPE = "@klin-js";
742
+ var SCOPE = "@kiln-js";
743
743
  var CLI_PACKAGE = "kiln";
744
- var KILN_VERSION = "0.1.0";
744
+ var KILN_VERSION = "0.1.3";
745
745
  var VITE_VERSION = "5.4.21";
746
746
  var pkg = (name) => `${SCOPE}/${name}`;
747
747
  var kilnDep = (linked) => linked ? "*" : `^${KILN_VERSION}`;
@@ -1072,7 +1072,7 @@ function apiTemplate(methods) {
1072
1072
  }
1073
1073
  `;
1074
1074
  });
1075
- return `import type { ApiContext } from "@kiln/server";
1075
+ return `import type { ApiContext } from "@kiln-js/server";
1076
1076
 
1077
1077
  ${handlers.join(`
1078
1078
  `)}`;
package/package.json CHANGED
@@ -1,28 +1,28 @@
1
1
  {
2
- "name": "@kiln-js/cli",
3
- "version": "0.1.2",
4
- "type": "module",
5
- "bin": {
6
- "kiln": "./dist/index.js"
7
- },
8
- "files": [
9
- "dist"
10
- ],
11
- "scripts": {
12
- "build": "bun build ./src/index.ts --outdir ./dist --target bun --packages external --banner \u0027#!/usr/bin/env bun\u0027 \u0026\u0026 tsc -p tsconfig.json --emitDeclarationOnly",
13
- "typecheck": "tsc -p tsconfig.json --noEmit"
14
- },
15
- "dependencies": {
16
- "@kiln-js/adapter-vercel": "*",
17
- "@kiln-js/core": "*",
18
- "@kiln-js/server": "*",
19
- "@kiln-js/vite-plugin": "*",
20
- "cac": "^6.7.14",
21
- "inquirer": "^9.3.7",
22
- "vite": "5.4.21"
23
- },
24
- "devDependencies": {
25
- "@types/inquirer": "^9.0.7",
26
- "@types/node": "^22.0.0"
27
- }
2
+ "name": "@kiln-js/cli",
3
+ "version": "0.1.3",
4
+ "type": "module",
5
+ "bin": {
6
+ "kiln": "./dist/index.js"
7
+ },
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "scripts": {
12
+ "build": "bun build ./src/index.ts --outdir ./dist --target bun --packages external --banner \u0027#!/usr/bin/env bun\u0027 \u0026\u0026 tsc -p tsconfig.json --emitDeclarationOnly",
13
+ "typecheck": "tsc -p tsconfig.json --noEmit"
14
+ },
15
+ "dependencies": {
16
+ "@kiln-js/adapter-vercel": "^0.1.3",
17
+ "@kiln-js/core": "^0.1.3",
18
+ "@kiln-js/server": "^0.1.3",
19
+ "@kiln-js/vite-plugin": "^0.1.3",
20
+ "cac": "^6.7.14",
21
+ "inquirer": "^9.3.7",
22
+ "vite": "5.4.21"
23
+ },
24
+ "devDependencies": {
25
+ "@types/inquirer": "^9.0.7",
26
+ "@types/node": "^22.0.0"
27
+ }
28
28
  }