Update builds to exclude the package.json

This commit is contained in:
adrinr 2023-04-17 14:20:36 +01:00
parent 8e95121ac8
commit eeb0daa98a
9 changed files with 23 additions and 49 deletions

View File

@ -10,15 +10,11 @@
"incremental": true, "incremental": true,
"sourceMap": true, "sourceMap": true,
"declaration": true, "declaration": true,
"types": [ "node", "jest" ], "types": ["node", "jest"],
"outDir": "dist", "outDir": "dist",
"skipLibCheck": true "skipLibCheck": true
}, },
"include": [ "include": ["**/*.js", "**/*.ts"],
"**/*.js",
"**/*.ts",
"package.json"
],
"exclude": [ "exclude": [
"node_modules", "node_modules",
"dist", "dist",

View File

@ -8,23 +8,14 @@
"paths": { "paths": {
"@budibase/types": ["../types/src"], "@budibase/types": ["../types/src"],
"@budibase/backend-core": ["../backend-core/src"], "@budibase/backend-core": ["../backend-core/src"],
"@budibase/backend-core/*": ["../backend-core/*"], "@budibase/backend-core/*": ["../backend-core/*"]
} }
}, },
"ts-node": { "ts-node": {
"require": ["tsconfig-paths/register"], "require": ["tsconfig-paths/register"],
"swc": true "swc": true
}, },
"references": [ "references": [{ "path": "../types" }, { "path": "../backend-core" }],
{ "path": "../types" }, "include": ["src/**/*"],
{ "path": "../backend-core" }, "exclude": ["node_modules", "dist"]
],
"include": [
"src/**/*",
"package.json"
],
"exclude": [
"node_modules",
"dist"
]
} }

View File

@ -8,13 +8,11 @@
"esModuleInterop": true, "esModuleInterop": true,
"resolveJsonModule": true, "resolveJsonModule": true,
"incremental": true, "incremental": true,
"types": [ "node", "jest" ], "types": ["node", "jest"],
"outDir": "dist", "outDir": "dist/src",
"skipLibCheck": true "skipLibCheck": true
}, },
"include": [ "include": ["src/**/*"],
"src/**/*"
],
"exclude": [ "exclude": [
"node_modules", "node_modules",
"dist", "dist",

View File

@ -23,6 +23,6 @@
{ "path": "../shared-core" }, { "path": "../shared-core" },
{ "path": "../../../budibase-pro/packages/pro" } { "path": "../../../budibase-pro/packages/pro" }
], ],
"include": ["src/**/*", "specs", "package.json"], "include": ["src/**/*", "specs"],
"exclude": ["node_modules", "dist"] "exclude": ["node_modules", "dist"]
} }

View File

@ -14,7 +14,7 @@
"outDir": "dist", "outDir": "dist",
"skipLibCheck": true "skipLibCheck": true
}, },
"include": ["**/*.js", "**/*.ts", "package.json"], "include": ["**/*.js", "**/*.ts"],
"exclude": [ "exclude": [
"node_modules", "node_modules",
"dist", "dist",

View File

@ -2,7 +2,7 @@
"extends": "./tsconfig-base.build.json", "extends": "./tsconfig-base.build.json",
"compilerOptions": { "compilerOptions": {
"module": "commonjs", "module": "commonjs",
"outDir": "dist/cjs", "outDir": "dist/cjs/src",
"target": "es2015" "target": "es2015"
} }
} }

View File

@ -2,7 +2,7 @@
"extends": "./tsconfig-base.build.json", "extends": "./tsconfig-base.build.json",
"compilerOptions": { "compilerOptions": {
"module": "esnext", "module": "esnext",
"outDir": "dist/mjs", "outDir": "dist/mjs/src",
"target": "esnext" "target": "esnext"
} }
} }

View File

@ -21,11 +21,6 @@
{ "path": "../backend-core" }, { "path": "../backend-core" },
{ "path": "../../../budibase-pro/packages/pro" } { "path": "../../../budibase-pro/packages/pro" }
], ],
"include": [ "include": ["src/**/*"],
"src/**/*", "exclude": ["dist"]
"package.json"
],
"exclude": [
"dist"
]
} }

View File

@ -16,7 +16,7 @@
"@budibase/types": ["../packages/types/src"], "@budibase/types": ["../packages/types/src"],
"@budibase/backend-core": ["../packages/backend-core/src"], "@budibase/backend-core": ["../packages/backend-core/src"],
"@budibase/backend-core/*": ["../packages/backend-core/*"], "@budibase/backend-core/*": ["../packages/backend-core/*"],
"@budibase/server/*": ["../packages/server/src/*"], "@budibase/server/*": ["../packages/server/src/*"]
} }
}, },
"ts-node": { "ts-node": {
@ -24,14 +24,8 @@
}, },
"references": [ "references": [
{ "path": "../packages/types" }, { "path": "../packages/types" },
{ "path": "../packages/backend-core" }, { "path": "../packages/backend-core" }
], ],
"include": [ "include": ["src/**/*"],
"src/**/*", "exclude": ["node_modules", "dist"]
"package.json"
],
"exclude": [
"node_modules",
"dist"
]
} }