Consume packages from builder

This commit is contained in:
Adria Navarro 2023-08-09 11:40:54 +03:00
parent da87b28155
commit c21da4fbd3
3 changed files with 11 additions and 14 deletions

View File

@ -133,9 +133,7 @@
"dependsOn": [ "dependsOn": [
{ {
"projects": [ "projects": [
"@budibase/shared-core", "@budibase/string-templates"
"@budibase/string-templates",
"@budibase/types"
], ],
"target": "build" "target": "build"
} }
@ -145,9 +143,7 @@
"dependsOn": [ "dependsOn": [
{ {
"projects": [ "projects": [
"@budibase/shared-core", "@budibase/string-templates"
"@budibase/string-templates",
"@budibase/types"
], ],
"target": "build" "target": "build"
} }
@ -157,9 +153,7 @@
"dependsOn": [ "dependsOn": [
{ {
"projects": [ "projects": [
"@budibase/shared-core", "@budibase/string-templates"
"@budibase/string-templates",
"@budibase/types"
], ],
"target": "build" "target": "build"
} }

View File

@ -127,6 +127,14 @@ export default defineConfig(({ mode }) => {
find: "helpers", find: "helpers",
replacement: path.resolve("./src/helpers"), replacement: path.resolve("./src/helpers"),
}, },
{
find: "@budibase/types",
replacement: path.resolve("../types/src"),
},
{
find: "@budibase/shared-core",
replacement: path.resolve("../shared-core/src"),
},
], ],
}, },
} }

View File

@ -60,15 +60,10 @@ function runBuild(entry, outfile) {
} }
const { compilerOptions } = tsconfigPathPluginContent const { compilerOptions } = tsconfigPathPluginContent
const format =
compilerOptions.target === "es6" && compilerOptions.module !== "commonjs"
? "esm"
: undefined
build({ build({
...sharedConfig, ...sharedConfig,
platform: "node", platform: "node",
format,
outfile, outfile,
}).then(result => { }).then(result => {
glob(`${process.cwd()}/src/**/*.hbs`, {}, (err, files) => { glob(`${process.cwd()}/src/**/*.hbs`, {}, (err, files) => {