Merge branch 'master' of github.com:Budibase/budibase into dependabot/npm_and_yarn/requirejs-2.3.7
This commit is contained in:
commit
eb831dd126
|
@ -10,7 +10,7 @@
|
||||||
"@types/proper-lockfile": "^4.1.4",
|
"@types/proper-lockfile": "^4.1.4",
|
||||||
"@typescript-eslint/parser": "6.9.0",
|
"@typescript-eslint/parser": "6.9.0",
|
||||||
"esbuild": "^0.18.17",
|
"esbuild": "^0.18.17",
|
||||||
"esbuild-node-externals": "^1.8.0",
|
"esbuild-node-externals": "^1.14.0",
|
||||||
"eslint": "^8.52.0",
|
"eslint": "^8.52.0",
|
||||||
"eslint-plugin-import": "^2.29.0",
|
"eslint-plugin-import": "^2.29.0",
|
||||||
"eslint-plugin-jest": "^27.9.0",
|
"eslint-plugin-jest": "^27.9.0",
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
if [ -d "packages/pro/src" ]; then
|
|
||||||
cd packages/pro
|
|
||||||
|
|
||||||
yarn
|
|
||||||
lerna bootstrap
|
|
||||||
fi
|
|
|
@ -51,20 +51,6 @@ async function runBuild(entry, outfile) {
|
||||||
fs.readFileSync(tsconfig, "utf-8")
|
fs.readFileSync(tsconfig, "utf-8")
|
||||||
)
|
)
|
||||||
|
|
||||||
if (
|
|
||||||
!fs.existsSync(path.join(__dirname, "../packages/pro/src")) &&
|
|
||||||
tsconfigPathPluginContent.compilerOptions?.paths
|
|
||||||
) {
|
|
||||||
// If we don't have pro, we cannot bundle backend-core.
|
|
||||||
// Otherwise, the main context will not be shared between libraries
|
|
||||||
delete tsconfigPathPluginContent?.compilerOptions?.paths?.[
|
|
||||||
"@budibase/backend-core"
|
|
||||||
]
|
|
||||||
delete tsconfigPathPluginContent?.compilerOptions?.paths?.[
|
|
||||||
"@budibase/backend-core/*"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
const sharedConfig = {
|
const sharedConfig = {
|
||||||
entryPoints: [entry],
|
entryPoints: [entry],
|
||||||
bundle: true,
|
bundle: true,
|
||||||
|
@ -75,7 +61,7 @@ async function runBuild(entry, outfile) {
|
||||||
svelteCompilePlugin,
|
svelteCompilePlugin,
|
||||||
TsconfigPathsPlugin({ tsconfig: tsconfigPathPluginContent }),
|
TsconfigPathsPlugin({ tsconfig: tsconfigPathPluginContent }),
|
||||||
nodeExternalsPlugin({
|
nodeExternalsPlugin({
|
||||||
allowList: ["@budibase/frontend-core", "svelte"],
|
allowList: ["@budibase/frontend-core", "@budibase/pro", "svelte"],
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
preserveSymlinks: true,
|
preserveSymlinks: true,
|
||||||
|
|
|
@ -1,11 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Check if the pro submodule is loaded
|
|
||||||
if [ ! -d "./packages/pro/src" ]; then
|
|
||||||
echo "[ERROR] Submodule is not loaded. This is only allowed with loaded submodules."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
yarn build:apps
|
yarn build:apps
|
||||||
docker compose -f hosting/docker-compose.build.yaml -f hosting/docker-compose.dev.yaml --env-file hosting/.env up --build --scale proxy-service=0
|
docker compose -f hosting/docker-compose.build.yaml -f hosting/docker-compose.dev.yaml --env-file hosting/.env up --build --scale proxy-service=0
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue