diff --git a/packages/core/package.json b/packages/core/package.json index f5a4a206..8c766277 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -26,7 +26,8 @@ "access": "public" }, "scripts": { - "build": "rbxtsc --verbose" + "prepack": "yarn build", + "build": "shx rm -rf out && rbxtsc --verbose" }, "devDependencies": { "@rbxts/compiler-types": "^2.3.0-types.1", @@ -34,6 +35,7 @@ "@rbxts/jest-globals": "^0.1.0", "@rbxts/types": "^1.0.789", "roblox-ts": "2.3.0-dev-26ec859", + "shx": "^0.3.4", "typescript": "~5.5.3" }, "dependencies": { diff --git a/packages/ui/package.json b/packages/ui/package.json index 157e1100..5ba33da9 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -27,14 +27,15 @@ "access": "public" }, "scripts": { - "build": "rbxtsc --verbose" + "prepack": "yarn build", + "build": "shx rm -rf out && rbxtsc --verbose" }, "devDependencies": { "@rbxts/centurion": "workspace:^", "@rbxts/compiler-types": "2.3.0-types.1", "@rbxts/types": "^1.0.789", - "rbxts-transformer-services": "^1.1.1", "roblox-ts": "2.3.0-dev-26ec859", + "shx": "^0.3.4", "typescript": "~5.5.3" }, "dependencies": { diff --git a/test/package.json b/test/package.json index a7095bbf..3cc5c780 100644 --- a/test/package.json +++ b/test/package.json @@ -2,8 +2,8 @@ "name": "test", "private": true, "scripts": { - "build": "rbxtsc --type=game && rojo build -o place.rbxl", - "dev": "rbxtsc -w --type=game", + "build": "shx rm -rf out && rbxtsc --type=game && rojo build -o place.rbxl", + "dev": "shx rm -rf out && rbxtsc -w --type=game", "serve": "rojo serve" }, "devDependencies": { @@ -15,6 +15,7 @@ "dependencies": { "@rbxts/centurion": "workspace:^", "@rbxts/centurion-ui": "workspace:^", - "@rbxts/services": "^1.5.4" + "@rbxts/services": "^1.5.4", + "shx": "^0.3.4" } } diff --git a/yarn.lock b/yarn.lock index d7d2fad0..e17747bd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1240,8 +1240,8 @@ __metadata: "@rbxts/ripple": "npm:^0.8.2" "@rbxts/services": "npm:^1.5.4" "@rbxts/types": "npm:^1.0.789" - rbxts-transformer-services: "npm:^1.1.1" roblox-ts: "npm:2.3.0-dev-26ec859" + shx: "npm:^0.3.4" typescript: "npm:~5.5.3" peerDependencies: "@rbxts/centurion": "workspace:^" @@ -1260,6 +1260,7 @@ __metadata: "@rbxts/t": "npm:^3.1.1" "@rbxts/types": "npm:^1.0.789" roblox-ts: "npm:2.3.0-dev-26ec859" + shx: "npm:^0.3.4" typescript: "npm:~5.5.3" languageName: unknown linkType: soft @@ -2190,6 +2191,16 @@ __metadata: languageName: node linkType: hard +"brace-expansion@npm:^1.1.7": + version: 1.1.11 + resolution: "brace-expansion@npm:1.1.11" + dependencies: + balanced-match: "npm:^1.0.0" + concat-map: "npm:0.0.1" + checksum: 10c0/695a56cd058096a7cb71fb09d9d6a7070113c7be516699ed361317aca2ec169f618e28b8af352e02ab4233fb54eb0168460a40dc320bab0034b36ab59aaad668 + languageName: node + linkType: hard + "brace-expansion@npm:^2.0.1": version: 2.0.1 resolution: "brace-expansion@npm:2.0.1" @@ -2472,6 +2483,13 @@ __metadata: languageName: node linkType: hard +"concat-map@npm:0.0.1": + version: 0.0.1 + resolution: "concat-map@npm:0.0.1" + checksum: 10c0/c996b1cfdf95b6c90fee4dae37e332c8b6eb7d106430c17d538034c0ad9a1630cb194d2ab37293b1bdd4d779494beee7786d586a50bd9376fd6f7bcc2bd4c98f + languageName: node + linkType: hard + "convert-source-map@npm:^2.0.0": version: 2.0.0 resolution: "convert-source-map@npm:2.0.0" @@ -3043,6 +3061,13 @@ __metadata: languageName: node linkType: hard +"fs.realpath@npm:^1.0.0": + version: 1.0.0 + resolution: "fs.realpath@npm:1.0.0" + checksum: 10c0/444cf1291d997165dfd4c0d58b69f0e4782bfd9149fd72faa4fe299e68e0e93d6db941660b37dd29153bf7186672ececa3b50b7e7249477b03fdf850f287c948 + languageName: node + linkType: hard + "fsevents@npm:~2.3.2, fsevents@npm:~2.3.3": version: 2.3.3 resolution: "fsevents@npm:2.3.3" @@ -3129,6 +3154,20 @@ __metadata: languageName: node linkType: hard +"glob@npm:^7.0.0": + version: 7.2.3 + resolution: "glob@npm:7.2.3" + dependencies: + fs.realpath: "npm:^1.0.0" + inflight: "npm:^1.0.4" + inherits: "npm:2" + minimatch: "npm:^3.1.1" + once: "npm:^1.3.0" + path-is-absolute: "npm:^1.0.0" + checksum: 10c0/65676153e2b0c9095100fe7f25a778bf45608eeb32c6048cf307f579649bcc30353277b3b898a3792602c65764e5baa4f643714dfbdfd64ea271d210c7a425fe + languageName: node + linkType: hard + "globals@npm:^11.1.0": version: 11.12.0 resolution: "globals@npm:11.12.0" @@ -3535,6 +3574,23 @@ __metadata: languageName: node linkType: hard +"inflight@npm:^1.0.4": + version: 1.0.6 + resolution: "inflight@npm:1.0.6" + dependencies: + once: "npm:^1.3.0" + wrappy: "npm:1" + checksum: 10c0/7faca22584600a9dc5b9fca2cd5feb7135ac8c935449837b315676b4c90aa4f391ec4f42240178244b5a34e8bede1948627fda392ca3191522fc46b34e985ab2 + languageName: node + linkType: hard + +"inherits@npm:2": + version: 2.0.4 + resolution: "inherits@npm:2.0.4" + checksum: 10c0/4e531f648b29039fb7426fb94075e6545faa1eb9fe83c29f0b6d9e7263aceb4289d2d4557db0d428188eeb449cc7c5e77b0a0b2c4e248ff2a65933a0dee49ef2 + languageName: node + linkType: hard + "inline-style-parser@npm:0.1.1": version: 0.1.1 resolution: "inline-style-parser@npm:0.1.1" @@ -3549,6 +3605,13 @@ __metadata: languageName: node linkType: hard +"interpret@npm:^1.0.0": + version: 1.4.0 + resolution: "interpret@npm:1.4.0" + checksum: 10c0/08c5ad30032edeec638485bc3f6db7d0094d9b3e85e0f950866600af3c52e9fd69715416d29564731c479d9f4d43ff3e4d302a178196bdc0e6837ec147640450 + languageName: node + linkType: hard + "ip-address@npm:^9.0.5": version: 9.0.5 resolution: "ip-address@npm:9.0.5" @@ -4822,6 +4885,15 @@ __metadata: languageName: node linkType: hard +"minimatch@npm:^3.1.1": + version: 3.1.2 + resolution: "minimatch@npm:3.1.2" + dependencies: + brace-expansion: "npm:^1.1.7" + checksum: 10c0/0262810a8fc2e72cca45d6fd86bd349eee435eb95ac6aa45c9ea2180e7ee875ef44c32b55b5973ceabe95ea12682f6e3725cbb63d7a2d1da3ae1163c8b210311 + languageName: node + linkType: hard + "minimatch@npm:^9.0.4": version: 9.0.5 resolution: "minimatch@npm:9.0.5" @@ -4831,6 +4903,13 @@ __metadata: languageName: node linkType: hard +"minimist@npm:^1.2.3": + version: 1.2.8 + resolution: "minimist@npm:1.2.8" + checksum: 10c0/19d3fcdca050087b84c2029841a093691a91259a47def2f18222f41e7645a0b7c44ef4b40e88a1e58a40c84d2ef0ee6047c55594d298146d0eb3f6b737c20ce6 + languageName: node + linkType: hard + "minipass-collect@npm:^2.0.1": version: 2.0.1 resolution: "minipass-collect@npm:2.0.1" @@ -5040,6 +5119,15 @@ __metadata: languageName: node linkType: hard +"once@npm:^1.3.0": + version: 1.4.0 + resolution: "once@npm:1.4.0" + dependencies: + wrappy: "npm:1" + checksum: 10c0/5d48aca287dfefabd756621c5dfce5c91a549a93e9fdb7b8246bc4c4790aa2ec17b34a260530474635147aeb631a2dcc8b32c613df0675f96041cbb8244517d0 + languageName: node + linkType: hard + "onetime@npm:^5.1.0": version: 5.1.2 resolution: "onetime@npm:5.1.2" @@ -5239,6 +5327,13 @@ __metadata: languageName: node linkType: hard +"path-is-absolute@npm:^1.0.0": + version: 1.0.1 + resolution: "path-is-absolute@npm:1.0.1" + checksum: 10c0/127da03c82172a2a50099cddbf02510c1791fc2cc5f7713ddb613a56838db1e8168b121a920079d052e0936c23005562059756d653b7c544c53185efe53be078 + languageName: node + linkType: hard + "path-key@npm:^3.1.0": version: 3.1.1 resolution: "path-key@npm:3.1.1" @@ -5438,15 +5533,6 @@ __metadata: languageName: node linkType: hard -"rbxts-transformer-services@npm:^1.1.1": - version: 1.1.1 - resolution: "rbxts-transformer-services@npm:1.1.1" - peerDependencies: - typescript: ^5.2.2 - checksum: 10c0/6a71c3d817c42c0d73fe5541c801a83aab5fab9803e3bd29de74ac1d1c7834b89c971add03ec4da8ea08e7a4811400db4a930f85a7dacffaa60dcb52ff5194be - languageName: node - linkType: hard - "readdirp@npm:~3.6.0": version: 3.6.0 resolution: "readdirp@npm:3.6.0" @@ -5469,6 +5555,15 @@ __metadata: languageName: node linkType: hard +"rechoir@npm:^0.6.2": + version: 0.6.2 + resolution: "rechoir@npm:0.6.2" + dependencies: + resolve: "npm:^1.1.6" + checksum: 10c0/22c4bb32f4934a9468468b608417194f7e3ceba9a508512125b16082c64f161915a28467562368eeb15dc16058eb5b7c13a20b9eb29ff9927d1ebb3b5aa83e84 + languageName: node + linkType: hard + "rehype-expressive-code@npm:^0.35.3": version: 0.35.3 resolution: "rehype-expressive-code@npm:0.35.3" @@ -5657,7 +5752,7 @@ __metadata: languageName: node linkType: hard -"resolve@npm:^1.22.6": +"resolve@npm:^1.1.6, resolve@npm:^1.22.6": version: 1.22.8 resolution: "resolve@npm:1.22.8" dependencies: @@ -5670,7 +5765,7 @@ __metadata: languageName: node linkType: hard -"resolve@patch:resolve@npm%3A^1.22.6#optional!builtin": +"resolve@patch:resolve@npm%3A^1.1.6#optional!builtin, resolve@patch:resolve@npm%3A^1.22.6#optional!builtin": version: 1.22.8 resolution: "resolve@patch:resolve@npm%3A1.22.8#optional!builtin::version=1.22.8&hash=c3c19d" dependencies: @@ -5983,6 +6078,19 @@ __metadata: languageName: node linkType: hard +"shelljs@npm:^0.8.5": + version: 0.8.5 + resolution: "shelljs@npm:0.8.5" + dependencies: + glob: "npm:^7.0.0" + interpret: "npm:^1.0.0" + rechoir: "npm:^0.6.2" + bin: + shjs: bin/shjs + checksum: 10c0/feb25289a12e4bcd04c40ddfab51aff98a3729f5c2602d5b1a1b95f6819ec7804ac8147ebd8d9a85dfab69d501bcf92d7acef03247320f51c1552cec8d8e2382 + languageName: node + linkType: hard + "shiki@npm:^1.1.7, shiki@npm:^1.10.0, shiki@npm:^1.9.0": version: 1.10.1 resolution: "shiki@npm:1.10.1" @@ -5992,6 +6100,18 @@ __metadata: languageName: node linkType: hard +"shx@npm:^0.3.4": + version: 0.3.4 + resolution: "shx@npm:0.3.4" + dependencies: + minimist: "npm:^1.2.3" + shelljs: "npm:^0.8.5" + bin: + shx: lib/cli.js + checksum: 10c0/83251fb09314682f5a192f0249a4be68c755933313a41b5152b11c19fc0a68311954d3ca971a0cbae05815786a893c59b82f356484d8eeb009c84f4066b3fa31 + languageName: node + linkType: hard + "signal-exit@npm:^3.0.2": version: 3.0.7 resolution: "signal-exit@npm:3.0.7" @@ -6288,6 +6408,7 @@ __metadata: "@rbxts/services": "npm:^1.5.4" "@rbxts/types": "npm:^1.0.789" roblox-ts: "npm:2.3.0-dev-26ec859" + shx: "npm:^0.3.4" typescript: "npm:~5.5.3" languageName: unknown linkType: soft @@ -6912,6 +7033,13 @@ __metadata: languageName: node linkType: hard +"wrappy@npm:1": + version: 1.0.2 + resolution: "wrappy@npm:1.0.2" + checksum: 10c0/56fece1a4018c6a6c8e28fbc88c87e0fbf4ea8fd64fc6c63b18f4acc4bd13e0ad2515189786dd2c30d3eec9663d70f4ecf699330002f8ccb547e4a18231fc9f0 + languageName: node + linkType: hard + "y18n@npm:^5.0.5": version: 5.0.8 resolution: "y18n@npm:5.0.8"