Use base tsconfig in server
This commit is contained in:
parent
79b5238d9f
commit
bc31be6ef1
|
@ -21,6 +21,7 @@
|
||||||
"husky": "^8.0.3",
|
"husky": "^8.0.3",
|
||||||
"kill-port": "^1.6.1",
|
"kill-port": "^1.6.1",
|
||||||
"lerna": "7.4.2",
|
"lerna": "7.4.2",
|
||||||
|
"load-tsconfig": "^0.2.5",
|
||||||
"madge": "^6.0.0",
|
"madge": "^6.0.0",
|
||||||
"nx-cloud": "16.0.5",
|
"nx-cloud": "16.0.5",
|
||||||
"prettier": "2.8.8",
|
"prettier": "2.8.8",
|
||||||
|
|
|
@ -1,28 +1,5 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"extends": "../../tsconfig.build.json",
|
||||||
"target": "es6",
|
|
||||||
"module": "commonjs",
|
|
||||||
"lib": ["es2020"],
|
|
||||||
"strict": true,
|
|
||||||
"noImplicitAny": true,
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"resolveJsonModule": true,
|
|
||||||
"incremental": true,
|
|
||||||
"types": ["node", "jest"],
|
|
||||||
"outDir": "dist/src",
|
|
||||||
"skipLibCheck": true,
|
|
||||||
"baseUrl": ".",
|
|
||||||
"paths": {
|
|
||||||
"@budibase/types": ["../types/src"],
|
|
||||||
"@budibase/backend-core": ["../backend-core/src"],
|
|
||||||
"@budibase/backend-core/*": ["../backend-core/*"],
|
|
||||||
"@budibase/shared-core": ["../shared-core/src"],
|
|
||||||
"@budibase/pro": ["../pro/src"],
|
|
||||||
"@budibase/string-templates": ["../string-templates/src"],
|
|
||||||
"@budibase/string-templates/*": ["../string-templates/*"]
|
|
||||||
},
|
|
||||||
"allowArbitraryExtensions": true
|
|
||||||
},
|
|
||||||
"include": ["src/**/*"],
|
"include": ["src/**/*"],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"node_modules",
|
"node_modules",
|
||||||
|
|
|
@ -1,10 +1,5 @@
|
||||||
{
|
{
|
||||||
"extends": "./tsconfig.build.json",
|
"extends": "./tsconfig.build.json",
|
||||||
"compilerOptions": {
|
|
||||||
"lib": ["es2020", "dom"],
|
|
||||||
"composite": true,
|
|
||||||
"baseUrl": "."
|
|
||||||
},
|
|
||||||
"ts-node": {
|
"ts-node": {
|
||||||
"require": ["tsconfig-paths/register"],
|
"require": ["tsconfig-paths/register"],
|
||||||
"swc": true
|
"swc": true
|
||||||
|
|
|
@ -8,6 +8,7 @@ const path = require("path")
|
||||||
|
|
||||||
const { build } = require("esbuild")
|
const { build } = require("esbuild")
|
||||||
const { compile } = require("svelte/compiler")
|
const { compile } = require("svelte/compiler")
|
||||||
|
const { loadTsConfig } = require("load-tsconfig")
|
||||||
|
|
||||||
const {
|
const {
|
||||||
default: TsconfigPathsPlugin,
|
default: TsconfigPathsPlugin,
|
||||||
|
@ -47,8 +48,10 @@ var { argv } = require("yargs")
|
||||||
async function runBuild(entry, outfile) {
|
async function runBuild(entry, outfile) {
|
||||||
const isDev = process.env.NODE_ENV !== "production"
|
const isDev = process.env.NODE_ENV !== "production"
|
||||||
const tsconfig = argv["p"] || `tsconfig.build.json`
|
const tsconfig = argv["p"] || `tsconfig.build.json`
|
||||||
const tsconfigPathPluginContent = JSON.parse(
|
|
||||||
fs.readFileSync(tsconfig, "utf-8")
|
const { data: tsconfigPathPluginContent } = loadTsConfig(
|
||||||
|
process.cwd(),
|
||||||
|
tsconfig
|
||||||
)
|
)
|
||||||
|
|
||||||
const sharedConfig = {
|
const sharedConfig = {
|
||||||
|
|
12
yarn.lock
12
yarn.lock
|
@ -2201,8 +2201,8 @@
|
||||||
dependencies:
|
dependencies:
|
||||||
"@budibase/nano" "10.1.5"
|
"@budibase/nano" "10.1.5"
|
||||||
"@budibase/pouchdb-replication-stream" "1.2.11"
|
"@budibase/pouchdb-replication-stream" "1.2.11"
|
||||||
"@budibase/shared-core" "0.0.0"
|
"@budibase/shared-core" "*"
|
||||||
"@budibase/types" "0.0.0"
|
"@budibase/types" "*"
|
||||||
"@techpass/passport-openidconnect" "0.3.3"
|
"@techpass/passport-openidconnect" "0.3.3"
|
||||||
aws-cloudfront-sign "3.0.2"
|
aws-cloudfront-sign "3.0.2"
|
||||||
aws-sdk "2.1692.0"
|
aws-sdk "2.1692.0"
|
||||||
|
@ -2304,7 +2304,7 @@
|
||||||
"@budibase/shared-core@3.2.16":
|
"@budibase/shared-core@3.2.16":
|
||||||
version "0.0.0"
|
version "0.0.0"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@budibase/types" "0.0.0"
|
"@budibase/types" "*"
|
||||||
cron-validate "1.4.5"
|
cron-validate "1.4.5"
|
||||||
|
|
||||||
"@budibase/string-templates@3.2.16":
|
"@budibase/string-templates@3.2.16":
|
||||||
|
@ -2319,7 +2319,6 @@
|
||||||
version "0.0.0"
|
version "0.0.0"
|
||||||
dependencies:
|
dependencies:
|
||||||
scim-patch "^0.8.1"
|
scim-patch "^0.8.1"
|
||||||
zod "^3.23.8"
|
|
||||||
|
|
||||||
"@bull-board/api@5.10.2":
|
"@bull-board/api@5.10.2":
|
||||||
version "5.10.2"
|
version "5.10.2"
|
||||||
|
@ -14625,6 +14624,11 @@ load-json-file@^4.0.0:
|
||||||
pify "^3.0.0"
|
pify "^3.0.0"
|
||||||
strip-bom "^3.0.0"
|
strip-bom "^3.0.0"
|
||||||
|
|
||||||
|
load-tsconfig@^0.2.5:
|
||||||
|
version "0.2.5"
|
||||||
|
resolved "https://registry.yarnpkg.com/load-tsconfig/-/load-tsconfig-0.2.5.tgz#453b8cd8961bfb912dea77eb6c168fe8cca3d3a1"
|
||||||
|
integrity sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==
|
||||||
|
|
||||||
local-pkg@^0.4.2:
|
local-pkg@^0.4.2:
|
||||||
version "0.4.3"
|
version "0.4.3"
|
||||||
resolved "https://registry.yarnpkg.com/local-pkg/-/local-pkg-0.4.3.tgz#0ff361ab3ae7f1c19113d9bb97b98b905dbc4963"
|
resolved "https://registry.yarnpkg.com/local-pkg/-/local-pkg-0.4.3.tgz#0ff361ab3ae7f1c19113d9bb97b98b905dbc4963"
|
||||||
|
|
Loading…
Reference in New Issue