cirrojs 0.0.1 → 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 ADDED
@@ -0,0 +1,31 @@
1
+ # Change Log
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
+ and this project adheres to [Semantic Versioning](http://semver.org/).
6
+
7
+ - Added: for new features.
8
+ - Changed: for changes in existing functionality.
9
+ - Deprecated: for soon-to-be removed features.
10
+ - Removed: for now removed features.
11
+ - Fixed: for any bug fixes.
12
+ - Security: in case of vulnerabilities.
13
+
14
+ ## [Unreleased]
15
+
16
+ ## [0.0.3] - 2026-06-15
17
+
18
+ ### Fixed
19
+ - Fixed the `cirro` CLI binary not being linked correctly on install.
20
+
21
+ ## [0.0.2] - 2026-06-15
22
+
23
+ ### Changed
24
+ - Renamed the package from `cirro` to `cirrojs`.
25
+
26
+ ## 0.0.1 - 2026-06-15
27
+ - initial release
28
+
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
31
+ [0.0.2]: https://github.com/osawa-naotaka/cirro/compare/v0.0.1...v0.0.2
package/dist/cli.sh CHANGED
@@ -29,12 +29,12 @@ fi
29
29
 
30
30
  case "$runtime" in
31
31
  bun)
32
- exec bun -e='import { main } from "cirro/bin"; await main(process.argv.slice(1));' "${script_args[@]}"
32
+ exec bun -e='import { main } from "cirrojs/bin"; await main(process.argv.slice(1));' "${script_args[@]}"
33
33
  ;;
34
34
  node)
35
- exec node --eval 'import { main } from "cirro/bin"; await main(process.argv.slice(1));' "${script_args[@]}"
35
+ exec node --eval 'import { main } from "cirrojs/bin"; await main(process.argv.slice(1));' "${script_args[@]}"
36
36
  ;;
37
37
  deno)
38
- exec deno eval 'import { main } from "cirro/bin"; await main(process.argv.slice(2));' "${script_args[@]}"
38
+ exec deno eval 'import { main } from "cirrojs/bin"; await main(process.argv.slice(2));' "${script_args[@]}"
39
39
  ;;
40
40
  esac
package/package.json CHANGED
@@ -1,65 +1,64 @@
1
1
  {
2
- "name": "cirrojs",
3
- "version": "0.0.1",
4
- "description": "React islands SSG with strict CSP (no unsafe-inline). Vite-based, MPA-first.",
5
- "license": "MIT",
6
- "type": "module",
7
- "files": ["dist", "README.md", "LICENSE"],
8
- "exports": {
9
- ".": "./src/index.ts",
10
- "./vite": "./src/vite.ts",
11
- "./bin": "./src/cli.ts"
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"
12
21
  },
13
- "bin": {
14
- "cirro": "./public/cli.sh"
22
+ "./vite": {
23
+ "types": "./dist/vite.d.ts",
24
+ "default": "./dist/vite.js"
15
25
  },
16
- "publishConfig": {
17
- "exports": {
18
- ".": {
19
- "types": "./dist/index.d.ts",
20
- "default": "./dist/index.js"
21
- },
22
- "./vite": {
23
- "types": "./dist/vite.d.ts",
24
- "default": "./dist/vite.js"
25
- },
26
- "./bin": {
27
- "types": "./dist/cli.d.ts",
28
- "default": "./dist/cli.js"
29
- }
30
- },
31
- "bin": {
32
- "cirro": "./dist/cli.sh"
33
- }
34
- },
35
- "scripts": {
36
- "build": "tsdown",
37
- "typecheck": "tsc -p tsconfig.build.json --noEmit",
38
- "format": "biome check --write ./src"
39
- },
40
- "dependencies": {
41
- "hast-util-sanitize": "^5.0.2",
42
- "rehype-prism": "^2.3.3",
43
- "rehype-sanitize": "^6.0.0",
44
- "rehype-stringify": "^10.0.1",
45
- "remark-export-toc": "0.1.0-alpha.2",
46
- "remark-parse": "^11.0.0",
47
- "remark-rehype": "^11.1.2",
48
- "unified": "^11.0.5"
49
- },
50
- "peerDependencies": {
51
- "@vitejs/plugin-react": "^6.0.2",
52
- "react": "^19.2.7",
53
- "react-dom": "^19.2.7",
54
- "vite": "^8.0.0"
55
- },
56
- "devDependencies": {
57
- "@biomejs/biome": "2.5.0",
58
- "@types/node": "25.9.3",
59
- "@types/react": "19.2.17",
60
- "@types/react-dom": "19.2.3",
61
- "tsdown": "^0.22.2",
62
- "typescript": "6.0.3",
63
- "vite": "8.0.16"
26
+ "./bin": {
27
+ "types": "./dist/cli.d.ts",
28
+ "default": "./dist/cli.js"
64
29
  }
65
- }
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 "cirro/bin"; await main(process.argv.slice(1));' "${script_args[@]}"
33
- ;;
34
- node)
35
- exec node --eval 'import { main } from "cirro/bin"; await main(process.argv.slice(1));' "${script_args[@]}"
36
- ;;
37
- deno)
38
- exec deno eval 'import { main } from "cirro/bin"; await main(process.argv.slice(2));' "${script_args[@]}"
39
- ;;
40
- esac