Skip to content

Commit

Permalink
chore: rsc@0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Apr 29, 2024
1 parent 7cacb1f commit 47b3a19
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
3 changes: 1 addition & 2 deletions packages/rsc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@okamjs/rsc",
"version": "0.0.2",
"version": "0.0.3",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"license": "MIT",
Expand All @@ -17,7 +17,6 @@
],
"scripts": {
"format": "biome check --apply .",
"release": "echo 'NOT IMPLEMENTED' && exit 1",
"dev": "father dev",
"build": "father build"
},
Expand Down
15 changes: 7 additions & 8 deletions scripts/release-rsc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@ import 'zx/globals';

(async () => {
// pnpm install to update lockfile
console.log('pnpm install');
console.log('Pnpm install');
await $`pnpm install`;

// build
console.log('Build');
await $`pnpm --filter @okamjs/rsc build`;

// bump version to sync with @okamjs/okam
console.log('Bump version');
const pkgDir = path.join(
__dirname,
'../packages/rsc/',
);
const pkgDir = path.join(__dirname, '../packages/rsc/');
const pkgPath = path.join(pkgDir, 'package.json');
await $`cd packages/rsc && npm version patch`;
const pkg = JSON.parse(
fs.readFileSync(pkgPath, 'utf-8'),
);
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'));

// git commit
console.log('Commit');
Expand Down

0 comments on commit 47b3a19

Please sign in to comment.