diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b1b1fef..570c8ea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: run: pnpm install - name: Check code quality - run: pnpm lint + run: pnpm check - name: Build models run: pnpm build diff --git a/bin/pack.sh b/bin/pack.sh new file mode 100644 index 0000000..0b20fa7 --- /dev/null +++ b/bin/pack.sh @@ -0,0 +1,9 @@ +rm -f src/*/*.tgz + +for package in src/*; do + (cd $package && pnpm pack) +done + +for tarball in src/*/*.tgz; do + echo "pnpm add $(realpath $tarball)" +done diff --git a/package.json b/package.json index b490508..6080599 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,9 @@ { "private": true, "scripts": { - "lint": "sh bin/check.sh", "build": "sh bin/build.sh", + "check": "sh bin/check.sh", + "pack": "sh bin/pack.sh", "wally": "wally install && rojo sourcemap --output sourcemap.json" }, "devDependencies": {