tapedb-cli 0.0.0-stage → 0.1.10

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 (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +11 -2
  3. package/bin.mjs +15 -0
  4. package/package.json +25 -4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Brandon Diaz
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,12 @@
1
- # Temporary Holding Version
1
+ # tapedb-cli
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The command line for [tapedb](https://tapedb.dev), a typed database for Cloudflare.
4
+
5
+ ```bash
6
+ npx tapedb-cli init # set up a project: schema, Worker, migrations; run locally or deploy
7
+ npx tapedb-cli dev # run the database locally, with the studio at http://localhost:8787/
8
+ npx tapedb-cli deploy # deploy to your Cloudflare account
9
+ ```
10
+
11
+ Each run uses the newest tapedb and brings the project's `@tapedb/tapedb` up to it.
12
+ The library itself is [`@tapedb/tapedb`](https://www.npmjs.com/package/@tapedb/tapedb).
package/bin.mjs ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env node
2
+ // `npx tapedb-cli <command>`: runs the CLI of the @tapedb/tapedb release this package pins.
3
+ // npx fetches the newest tapedb-cli when it isn't installed in the project, so the CLI is always
4
+ // current; it then brings the project's own @tapedb/tapedb up to the same version.
5
+ import { spawnSync } from "node:child_process";
6
+ import { dirname, join } from "node:path";
7
+ import { fileURLToPath } from "node:url";
8
+
9
+ const cli = join(dirname(fileURLToPath(import.meta.resolve("@tapedb/tapedb"))), "cli.js");
10
+ const result = spawnSync(process.execPath, [cli, ...process.argv.slice(2)], { stdio: "inherit" });
11
+ if (result.error) {
12
+ console.error(result.error.message);
13
+ process.exit(1);
14
+ }
15
+ process.exit(result.status ?? 1);
package/package.json CHANGED
@@ -1,6 +1,27 @@
1
1
  {
2
2
  "name": "tapedb-cli",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.10",
4
+ "description": "The tapedb command line: npx tapedb-cli init, dev, deploy.",
5
+ "type": "module",
6
+ "bin": {
7
+ "tapedb-cli": "bin.mjs"
8
+ },
9
+ "files": [
10
+ "bin.mjs",
11
+ "README.md",
12
+ "LICENSE"
13
+ ],
14
+ "dependencies": {
15
+ "@tapedb/tapedb": "0.1.10"
16
+ },
17
+ "engines": {
18
+ "node": ">=22.18"
19
+ },
20
+ "license": "MIT",
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/tapedb/tapedb.git",
24
+ "directory": "packages/tapedb-cli"
25
+ },
26
+ "homepage": "https://tapedb.dev"
27
+ }