tileflow 0.1.0-alpha.21 → 0.1.0-alpha.22
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/README.md +5 -4
- package/dist/chunk-5QK6JCLT.js +2145 -0
- package/dist/chunk-GPPOECR5.js +16 -0
- package/dist/cli-main-HRFGWUWR.js +10087 -0
- package/dist/index.js +8 -12121
- package/dist/tileset-entry-ITUSGCM3.js +23 -0
- package/package.json +5 -5
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createCliProgram,
|
|
3
|
+
loadAuthConfig,
|
|
4
|
+
registerTilesetCommands
|
|
5
|
+
} from "./chunk-5QK6JCLT.js";
|
|
6
|
+
|
|
7
|
+
// src/tileset-entry.ts
|
|
8
|
+
import pc from "picocolors";
|
|
9
|
+
import { defaultTileflowApiUrl } from "@tileflow/dev/config";
|
|
10
|
+
async function runTilesetCli() {
|
|
11
|
+
const program = createCliProgram();
|
|
12
|
+
registerTilesetCommands(program, { defaultApiUrl: defaultTileflowApiUrl, loadAuthConfig });
|
|
13
|
+
try {
|
|
14
|
+
await program.parseAsync();
|
|
15
|
+
} catch (error) {
|
|
16
|
+
const message = error instanceof Error ? error.message : "Command failed.";
|
|
17
|
+
console.error(`${pc.red("Error:")} ${message.split("\n")[0]}`);
|
|
18
|
+
process.exitCode = 1;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
runTilesetCli
|
|
23
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tileflow",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.22",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "CLI-only tools for Tileflow config, capture, visual testing, and deploy.",
|
|
6
6
|
"type": "module",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@hono/node-server": "2.1.3",
|
|
38
|
-
"@tileflow/capture": ">=0.1.0-alpha.
|
|
38
|
+
"@tileflow/capture": ">=0.1.0-alpha.38 <0.1.0-beta.0",
|
|
39
39
|
"@tileflow/coordinates": ">=0.1.0-alpha.3 <0.1.0-beta.0",
|
|
40
40
|
"@tileflow/coordinates-runtime": ">=0.1.0-alpha.6 <0.1.0-beta.0",
|
|
41
|
-
"@tileflow/core": ">=0.1.0-alpha.
|
|
41
|
+
"@tileflow/core": ">=0.1.0-alpha.47 <0.1.0-beta.0",
|
|
42
42
|
"@tileflow/dev": ">=0.1.0-alpha.42 <0.1.0-beta.0",
|
|
43
|
-
"@tileflow/maps": ">=0.1.0-alpha.
|
|
43
|
+
"@tileflow/maps": ">=0.1.0-alpha.19 <0.1.0-beta.0",
|
|
44
44
|
"commander": "^15.0.0",
|
|
45
45
|
"hono": "4.13.14",
|
|
46
46
|
"picocolors": "^1.1.1",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"pngjs": "7.0.0"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
|
-
"build": "tsup src/index.ts --format esm --clean --
|
|
54
|
+
"build": "tsup src/index.ts --format esm --clean --splitting --platform node",
|
|
55
55
|
"cli": "tsx src/index.ts",
|
|
56
56
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
57
57
|
"lint": "tsc -p tsconfig.json --noEmit",
|