Skip to content

Commit 798d1e7

Browse files
committed
chore: added prepare and clean script
1 parent 716c16d commit 798d1e7

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

packages/create-gluestack/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
],
1111
"scripts": {
1212
"build": "npx tsc",
13+
"clean": "rm -rf dist",
14+
"prepare": "yarn clean && yarn build",
1315
"test": "echo \"Error: no test specified\" && exit 1",
1416
"prepublishOnly": "npm run build",
1517
"changeset": "changeset",

packages/gluestack-ui/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"start": "tsc --watch",
3030
"watch": "tsc --watch",
3131
"build": "tsc",
32-
"prepare": "tsc",
32+
"clean": "rm -rf dist",
33+
"prepare": "yarn clean && yarn build",
3334
"test": "echo 'Test passed'",
3435
"changeset": "changeset",
3536
"version": "changeset version",

packages/ui-next-adapter/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"scripts": {
1717
"dev": "tsup --watch",
1818
"build": "tsup",
19+
"prepare": "yarn clean && yarn build",
1920
"lint": "eslint src --ext .ts,.tsx",
2021
"typecheck": "tsc --noEmit",
2122
"clean": "rm -rf dist",

0 commit comments

Comments
 (0)