Skip to content

Commit 702e56d

Browse files
committed
update lockfile
1 parent 98afbd0 commit 702e56d

File tree

4 files changed

+70
-25
lines changed

4 files changed

+70
-25
lines changed

packages/cli/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "create-zero-ui",
3-
"version": "1.0.8",
3+
"version": "1.0.9",
44
"type": "module",
55
"main": "./bin.js",
66
"bin": {
7-
"react-zero-ui": "./bin.js"
7+
"react-zero-ui": "bin.js"
88
},
99
"scripts": {
1010
"test": "node --test ../core/__tests__/unit/cli.test.cjs"
@@ -16,7 +16,7 @@
1616
"LICENSE"
1717
],
1818
"dependencies": {
19-
"@react-zero-ui/core": "^0.2.0",
19+
"@react-zero-ui/core": "^0.2.2",
2020
"postcss": "^8.4.27",
2121
"tailwindcss": "^4.0.0",
2222
"@tailwindcss/postcss": "^4.1.8"

packages/core/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-zero-ui/core",
3-
"version": "0.2.0",
3+
"version": "0.2.3",
44
"description": "Zero re-render, global UI state management for React",
55
"private": false,
66
"type": "module",
@@ -41,7 +41,7 @@
4141
"test:vite": "playwright test -c __tests__/config/playwright.vite.config.js",
4242
"test:integration": "node --test __tests__/unit/index.test.cjs",
4343
"test:cli": "node --test __tests__/unit/cli.test.cjs",
44-
"test": "pnpm run test:vite && pnpm run test:next && pnpm run test:unit && pnpm run test:cli && pnpm run test:integration",
44+
"test:all": "pnpm run test:vite && pnpm run test:next && pnpm run test:unit && pnpm run test:cli && pnpm run test:integration",
4545
"test:unit": "tsx --test src/**/*.test.ts"
4646
},
4747
"keywords": [
@@ -83,16 +83,16 @@
8383
"@babel/parser": "^7.27.5",
8484
"@babel/traverse": "^7.27.4",
8585
"@babel/types": "^7.27.4",
86-
"fast-glob": "^3.3.3"
86+
"fast-glob": "^3.3.3",
87+
"@babel/code-frame": "^7.27.1",
88+
"lru-cache": "^10.4.3"
8789
},
8890
"devDependencies": {
89-
"@babel/code-frame": "^7.27.1",
9091
"@playwright/test": "^1.53.0",
9192
"@types/babel__code-frame": "^7.0.6",
9293
"@types/babel__generator": "^7.27.0",
9394
"@types/babel__traverse": "^7.20.7",
9495
"@types/react": "^19.1.8",
95-
"lru-cache": "^10.4.3",
9696
"tsx": "^4.20.3"
9797
}
9898
}

packages/core/src/cli/init.cts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
#!/usr/bin/env node
22

3-
// src/cli/init.ts - single source of truth
3+
// src/cli/init.cts - single source of truth
44

5-
import { runZeroUiInit } from './postInstall.cjs';
5+
//import the actual implementation from postInstall.cjs
6+
const { runZeroUiInit } = require('./postInstall.cjs');
67

7-
async function cli() {
8-
return await runZeroUiInit();
8+
// Take command line arguments (defaulting to process.argv.slice(2) which are the args after node <scriptname>) and pass them to runZeroUiInit
9+
async function cli(argv = process.argv.slice(2)) {
10+
return await runZeroUiInit(argv);
911
}
1012

11-
/* -------- CLI -------- */
13+
/* -------- CL I -------- */
1214
if (require.main === module) {
1315
cli().catch((error) => {
1416
console.error('CLI failed:', error);
1517
process.exit(1);
1618
});
1719
}
1820

19-
/* -------- ES6 Export -------- */
20-
export default cli;
21+
/* -------- CJS -------- */
22+
module.exports = cli; // `require('@…/cli')()`

pnpm-lock.yaml

Lines changed: 53 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)