cirrojs 0.0.2 → 0.0.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.
- package/CHANGELOG.md +7 -1
- package/package.json +60 -70
- package/public/cli.sh +0 -40
package/CHANGELOG.md
CHANGED
|
@@ -13,6 +13,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
13
13
|
|
|
14
14
|
## [Unreleased]
|
|
15
15
|
|
|
16
|
+
## [0.0.3] - 2026-06-15
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
- Fixed the `cirro` CLI binary not being linked correctly on install.
|
|
20
|
+
|
|
16
21
|
## [0.0.2] - 2026-06-15
|
|
17
22
|
|
|
18
23
|
### Changed
|
|
@@ -21,5 +26,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
21
26
|
## 0.0.1 - 2026-06-15
|
|
22
27
|
- initial release
|
|
23
28
|
|
|
24
|
-
[Unreleased]: https://github.com/osawa-naotaka/cirro/compare/v0.0.
|
|
29
|
+
[Unreleased]: https://github.com/osawa-naotaka/cirro/compare/v0.0.3...HEAD
|
|
30
|
+
[0.0.3]: https://github.com/osawa-naotaka/cirro/compare/v0.0.2...v0.0.3
|
|
25
31
|
[0.0.2]: https://github.com/osawa-naotaka/cirro/compare/v0.0.1...v0.0.2
|
package/package.json
CHANGED
|
@@ -1,74 +1,64 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
"name": "cirrojs",
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"description": "React islands SSG with strict CSP (no unsafe-inline). Vite-based, MPA-first.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/osawa-naotaka/cirro.git"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"README.md",
|
|
14
|
+
"CHANGELOG.md",
|
|
15
|
+
"LICENSE"
|
|
16
|
+
],
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"default": "./dist/index.js"
|
|
10
21
|
},
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"CHANGELOG.md",
|
|
15
|
-
"LICENSE"
|
|
16
|
-
],
|
|
17
|
-
"exports": {
|
|
18
|
-
".": "./src/index.ts",
|
|
19
|
-
"./vite": "./src/vite.ts",
|
|
20
|
-
"./bin": "./src/cli.ts"
|
|
22
|
+
"./vite": {
|
|
23
|
+
"types": "./dist/vite.d.ts",
|
|
24
|
+
"default": "./dist/vite.js"
|
|
21
25
|
},
|
|
22
|
-
"bin": {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"publishConfig": {
|
|
26
|
-
"exports": {
|
|
27
|
-
".": {
|
|
28
|
-
"types": "./dist/index.d.ts",
|
|
29
|
-
"default": "./dist/index.js"
|
|
30
|
-
},
|
|
31
|
-
"./vite": {
|
|
32
|
-
"types": "./dist/vite.d.ts",
|
|
33
|
-
"default": "./dist/vite.js"
|
|
34
|
-
},
|
|
35
|
-
"./bin": {
|
|
36
|
-
"types": "./dist/cli.d.ts",
|
|
37
|
-
"default": "./dist/cli.js"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"bin": {
|
|
41
|
-
"cirro": "./dist/cli.sh"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"scripts": {
|
|
45
|
-
"build": "tsdown",
|
|
46
|
-
"typecheck": "tsc -p tsconfig.build.json --noEmit",
|
|
47
|
-
"format": "biome check --write ./src"
|
|
48
|
-
},
|
|
49
|
-
"dependencies": {
|
|
50
|
-
"hast-util-sanitize": "^5.0.2",
|
|
51
|
-
"rehype-prism": "^2.3.3",
|
|
52
|
-
"rehype-sanitize": "^6.0.0",
|
|
53
|
-
"rehype-stringify": "^10.0.1",
|
|
54
|
-
"remark-export-toc": "0.1.0-alpha.2",
|
|
55
|
-
"remark-parse": "^11.0.0",
|
|
56
|
-
"remark-rehype": "^11.1.2",
|
|
57
|
-
"unified": "^11.0.5"
|
|
58
|
-
},
|
|
59
|
-
"peerDependencies": {
|
|
60
|
-
"@vitejs/plugin-react": "^6.0.2",
|
|
61
|
-
"react": "^19.2.7",
|
|
62
|
-
"react-dom": "^19.2.7",
|
|
63
|
-
"vite": "^8.0.0"
|
|
64
|
-
},
|
|
65
|
-
"devDependencies": {
|
|
66
|
-
"@biomejs/biome": "2.5.0",
|
|
67
|
-
"@types/node": "25.9.3",
|
|
68
|
-
"@types/react": "19.2.17",
|
|
69
|
-
"@types/react-dom": "19.2.3",
|
|
70
|
-
"tsdown": "^0.22.2",
|
|
71
|
-
"typescript": "6.0.3",
|
|
72
|
-
"vite": "8.0.16"
|
|
26
|
+
"./bin": {
|
|
27
|
+
"types": "./dist/cli.d.ts",
|
|
28
|
+
"default": "./dist/cli.js"
|
|
73
29
|
}
|
|
74
|
-
}
|
|
30
|
+
},
|
|
31
|
+
"bin": {
|
|
32
|
+
"cirro": "./dist/cli.sh"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"hast-util-sanitize": "^5.0.2",
|
|
36
|
+
"rehype-prism": "^2.3.3",
|
|
37
|
+
"rehype-sanitize": "^6.0.0",
|
|
38
|
+
"rehype-stringify": "^10.0.1",
|
|
39
|
+
"remark-export-toc": "0.1.0-alpha.2",
|
|
40
|
+
"remark-parse": "^11.0.0",
|
|
41
|
+
"remark-rehype": "^11.1.2",
|
|
42
|
+
"unified": "^11.0.5"
|
|
43
|
+
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"@vitejs/plugin-react": "^6.0.2",
|
|
46
|
+
"react": "^19.2.7",
|
|
47
|
+
"react-dom": "^19.2.7",
|
|
48
|
+
"vite": "^8.0.0"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@biomejs/biome": "2.5.0",
|
|
52
|
+
"@types/node": "25.9.3",
|
|
53
|
+
"@types/react": "19.2.17",
|
|
54
|
+
"@types/react-dom": "19.2.3",
|
|
55
|
+
"tsdown": "^0.22.2",
|
|
56
|
+
"typescript": "6.0.3",
|
|
57
|
+
"vite": "8.0.16"
|
|
58
|
+
},
|
|
59
|
+
"scripts": {
|
|
60
|
+
"build": "tsdown",
|
|
61
|
+
"typecheck": "tsc -p tsconfig.build.json --noEmit",
|
|
62
|
+
"format": "biome check --write ./src"
|
|
63
|
+
}
|
|
64
|
+
}
|
package/public/cli.sh
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
runtime=""
|
|
4
|
-
script_args=()
|
|
5
|
-
|
|
6
|
-
# 引数をループして実行環境とその他の引数を分離
|
|
7
|
-
for arg in "$@"; do
|
|
8
|
-
case "$arg" in
|
|
9
|
-
--bun) runtime="bun" ;;
|
|
10
|
-
--node) runtime="node" ;;
|
|
11
|
-
--deno) runtime="deno" ;;
|
|
12
|
-
*) script_args+=("$arg") ;;
|
|
13
|
-
esac
|
|
14
|
-
done
|
|
15
|
-
|
|
16
|
-
# 実行環境が指定されていない場合、自動検出(優先順位: bun -> node -> deno)
|
|
17
|
-
if [ -z "$runtime" ]; then
|
|
18
|
-
if command -v bun &> /dev/null; then
|
|
19
|
-
runtime="bun"
|
|
20
|
-
elif command -v node &> /dev/null; then
|
|
21
|
-
runtime="node"
|
|
22
|
-
elif command -v deno &> /dev/null; then
|
|
23
|
-
runtime="deno"
|
|
24
|
-
else
|
|
25
|
-
echo "Error: No JavaScript runtime found (bun, node, or deno)" >&2
|
|
26
|
-
exit 1
|
|
27
|
-
fi
|
|
28
|
-
fi
|
|
29
|
-
|
|
30
|
-
case "$runtime" in
|
|
31
|
-
bun)
|
|
32
|
-
exec bun -e='import { main } from "cirrojs/bin"; await main(process.argv.slice(1));' "${script_args[@]}"
|
|
33
|
-
;;
|
|
34
|
-
node)
|
|
35
|
-
exec node --eval 'import { main } from "cirrojs/bin"; await main(process.argv.slice(1));' "${script_args[@]}"
|
|
36
|
-
;;
|
|
37
|
-
deno)
|
|
38
|
-
exec deno eval 'import { main } from "cirrojs/bin"; await main(process.argv.slice(2));' "${script_args[@]}"
|
|
39
|
-
;;
|
|
40
|
-
esac
|