Switch workerware to a submodule

This commit is contained in:
MotorTruck1221 2024-10-25 16:59:50 -06:00
parent 7a0695ac9c
commit 5d4397d38b
No known key found for this signature in database
GPG key ID: 58241D7D0CAD3E4E
6 changed files with 13 additions and 174 deletions

View file

@ -11,6 +11,9 @@ import { defineConfig, envField } from "astro/config";
import { viteStaticCopy } from "vite-plugin-static-copy";
import { version } from "./package.json";
import { parsedDoc } from "./server/config.js";
import { fileURLToPath } from "node:url";
const workerwarePath = fileURLToPath(new URL('./workerware/src', import.meta.url));
export default defineConfig({
experimental: {
env: {
@ -65,6 +68,11 @@ export default defineConfig({
src: `${baremuxPath}/**/*`.replace(/\\/g, "/"),
dest: "baremux",
overwrite: false
},
{
src: `${workerwarePath}/**/*`.replace(/\\/g, "/"),
dest: 'workerware',
overwrite: false
}
]
})