fix: replace workspace:^ deps with real versions + merge cli global store path
- All packages bumped to 0.1.3 via changesets (fixed group) - Replace workspace:^ with ^0.1.x in json-cas-fs, json-cas-workflow, cli-json-cas - Merge PR #8: cli default store path → ~/.uncaged/json-cas/ Co-authored-by: 星月 🌙 (SORA Team) 小橘 🍊(NEKO Team)
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
|
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
|
||||||
"changelog": "@changesets/changelog-github",
|
"changelog": ["@changesets/changelog-github", { "repo": "uncaged/json-cas" }],
|
||||||
"commit": false,
|
"commit": false,
|
||||||
"fixed": [["@uncaged/*"]],
|
"fixed": [["@uncaged/*"]],
|
||||||
"linked": [],
|
"linked": [],
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
# @uncaged/cli-json-cas
|
||||||
|
|
||||||
|
## 0.1.3
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- fix: replace workspace:^ with actual version numbers in published dependencies
|
||||||
|
|
||||||
|
- Updated dependencies []:
|
||||||
|
- @uncaged/json-cas@0.1.3
|
||||||
|
- @uncaged/json-cas-fs@0.1.3
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@uncaged/cli-json-cas",
|
"name": "@uncaged/cli-json-cas",
|
||||||
"version": "0.1.1",
|
"version": "0.1.3",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"bin": {
|
"bin": {
|
||||||
"json-cas": "./src/index.ts"
|
"json-cas": "./src/index.ts"
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
"test": "bun test"
|
"test": "bun test"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@uncaged/json-cas": "workspace:^",
|
"@uncaged/json-cas": "^0.1.3",
|
||||||
"@uncaged/json-cas-fs": "workspace:^"
|
"@uncaged/json-cas-fs": "^0.1.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
#!/usr/bin/env bun
|
#!/usr/bin/env bun
|
||||||
|
|
||||||
import { mkdirSync, readFileSync } from "node:fs";
|
import { mkdirSync, readFileSync } from "node:fs";
|
||||||
import { resolve } from "node:path";
|
import { join, resolve } from "node:path";
|
||||||
|
import { homedir } from "node:os";
|
||||||
import type { Hash, JSONSchema, Store } from "@uncaged/json-cas";
|
import type { Hash, JSONSchema, Store } from "@uncaged/json-cas";
|
||||||
import {
|
import {
|
||||||
bootstrap,
|
bootstrap,
|
||||||
@@ -51,7 +52,8 @@ function parseArgs(argv: string[]): { flags: Flags; positional: string[] } {
|
|||||||
|
|
||||||
const { flags, positional } = parseArgs(process.argv.slice(2));
|
const { flags, positional } = parseArgs(process.argv.slice(2));
|
||||||
|
|
||||||
const storePath = typeof flags.store === "string" ? flags.store : ".cas";
|
const defaultStorePath = join(homedir(), ".uncaged", "json-cas");
|
||||||
|
const storePath = typeof flags.store === "string" ? flags.store : defaultStorePath;
|
||||||
const compact = flags.json === true;
|
const compact = flags.json === true;
|
||||||
|
|
||||||
// ---- Helpers ----
|
// ---- Helpers ----
|
||||||
@@ -259,7 +261,7 @@ function printUsage(): void {
|
|||||||
Usage: json-cas [--store <path>] [--json] <command> [args]
|
Usage: json-cas [--store <path>] [--json] <command> [args]
|
||||||
|
|
||||||
Commands:
|
Commands:
|
||||||
init Create .cas/ and write bootstrap seed
|
init Create store dir and write bootstrap seed
|
||||||
bootstrap Write meta-schema seed, print hash
|
bootstrap Write meta-schema seed, print hash
|
||||||
schema put <file.json> Register schema, print type hash
|
schema put <file.json> Register schema, print type hash
|
||||||
schema get <type-hash> Print schema JSON
|
schema get <type-hash> Print schema JSON
|
||||||
@@ -276,7 +278,7 @@ Commands:
|
|||||||
cat <hash> [--payload] Output node (--payload for payload only)
|
cat <hash> [--payload] Output node (--payload for payload only)
|
||||||
|
|
||||||
Flags:
|
Flags:
|
||||||
--store <path> Store directory (default: .cas)
|
--store <path> Store directory (default: ~/.uncaged/json-cas)
|
||||||
--json Compact JSON output`);
|
--json Compact JSON output`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
# @uncaged/json-cas-fs
|
||||||
|
|
||||||
|
## 0.1.3
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies []:
|
||||||
|
- @uncaged/json-cas@0.1.3
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@uncaged/json-cas-fs",
|
"name": "@uncaged/json-cas-fs",
|
||||||
"version": "0.1.2",
|
"version": "0.1.3",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./src/index.ts",
|
"main": "./src/index.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
"test": "bun test"
|
"test": "bun test"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@uncaged/json-cas": "^0.1.1",
|
"@uncaged/json-cas": "^0.1.3",
|
||||||
"cborg": "^4.2.3"
|
"cborg": "^4.2.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
# @uncaged/json-cas-workflow
|
||||||
|
|
||||||
|
## 0.1.3
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- fix: replace workspace:^ with actual version numbers in published dependencies
|
||||||
|
|
||||||
|
- Updated dependencies []:
|
||||||
|
- @uncaged/json-cas@0.1.3
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@uncaged/json-cas-workflow",
|
"name": "@uncaged/json-cas-workflow",
|
||||||
"version": "0.1.1",
|
"version": "0.1.3",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./src/index.ts",
|
"main": "./src/index.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
@@ -10,6 +10,6 @@
|
|||||||
"test": "bun test"
|
"test": "bun test"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@uncaged/json-cas": "workspace:^"
|
"@uncaged/json-cas": "^0.1.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# @uncaged/json-cas
|
||||||
|
|
||||||
|
## 0.1.3
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@uncaged/json-cas",
|
"name": "@uncaged/json-cas",
|
||||||
"version": "0.1.1",
|
"version": "0.1.3",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./src/index.ts",
|
"main": "./src/index.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|||||||
Reference in New Issue
Block a user