[CHORE] Remove preconstruct local patch (#11153)
# Introduction Please find related parent PR https://github.com/twentyhq/twenty/pull/11083 Custom TypeScript configuration file should be available on "2.8.12" ! See related changeset version dump PR https://github.com/preconstruct/preconstruct/pull/619
This commit is contained in:
@ -14,7 +14,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/preset-env": "^7.26.9",
|
||||
"@preconstruct/cli": "patch:@preconstruct/cli@npm%3A2.8.11#./patches/@preconstruct-cli-npm-2.8.11-030abfa6ae.patch",
|
||||
"@preconstruct/cli": "^2.8.12",
|
||||
"@prettier/sync": "^0.5.2",
|
||||
"@types/babel__preset-env": "^7",
|
||||
"babel-plugin-module-resolver": "^5.0.2",
|
||||
@ -26,6 +26,7 @@
|
||||
"zod": "3.23.8"
|
||||
},
|
||||
"preconstruct": {
|
||||
"tsconfig": "tsconfig.lib.json",
|
||||
"entrypoints": [
|
||||
"./index.ts",
|
||||
"./constants/index.ts",
|
||||
|
||||
@ -1,26 +0,0 @@
|
||||
diff --git a/cli/dist/preconstruct-cli-cli.cjs.js b/cli/dist/preconstruct-cli-cli.cjs.js
|
||||
index 8fbd4efc8ee4d98bc72d16344ff6f6ab4e5e2736..cf451d99128fd06053426d1a265f4e305380dd7b 100644
|
||||
--- a/cli/dist/preconstruct-cli-cli.cjs.js
|
||||
+++ b/cli/dist/preconstruct-cli-cli.cjs.js
|
||||
@@ -1509,7 +1509,7 @@ let memoizedGetProgram = weakMemoize(typescript => memoize(async configFileName
|
||||
return nonMemoizedGetProgram(typescript, configFileName);
|
||||
}));
|
||||
async function getProgram(dirname, pkgName, ts) {
|
||||
- let configFileName = ts.findConfigFile(dirname, ts.sys.fileExists);
|
||||
+ let configFileName = ts.findConfigFile(dirname, ts.sys.fileExists, 'tsconfig.lib.json');
|
||||
if (!configFileName) {
|
||||
throw new FatalError("an entrypoint source file ends with the .ts or tsx extension but no TypeScript config exists, please create one.", pkgName);
|
||||
}
|
||||
diff --git a/cli/dist/preconstruct-cli-cli.esm.js b/cli/dist/preconstruct-cli-cli.esm.js
|
||||
index 0045392b46c8928753af564f67681886e0f15bed..164a9bfbae85f1a8f41fffc87c6a3c4014cb9d33 100644
|
||||
--- a/cli/dist/preconstruct-cli-cli.esm.js
|
||||
+++ b/cli/dist/preconstruct-cli-cli.esm.js
|
||||
@@ -1460,7 +1460,7 @@ let memoizedGetProgram = weakMemoize(typescript => memoize(async configFileName
|
||||
return nonMemoizedGetProgram(typescript, configFileName);
|
||||
}));
|
||||
async function getProgram(dirname, pkgName, ts) {
|
||||
- let configFileName = ts.findConfigFile(dirname, ts.sys.fileExists);
|
||||
+ let configFileName = ts.findConfigFile(dirname, ts.sys.fileExists, 'tsconfig.lib.json');
|
||||
if (!configFileName) {
|
||||
throw new FatalError("an entrypoint source file ends with the .ts or tsx extension but no TypeScript config exists, please create one.", pkgName);
|
||||
}
|
||||
@ -194,6 +194,8 @@ const computePackageJsonFilesAndPreconstructConfig = (
|
||||
|
||||
return {
|
||||
preconstruct: {
|
||||
// TODO refactor to merge in existing configuration
|
||||
tsconfig: 'tsconfig.lib.json',
|
||||
entrypoints: [
|
||||
'./index.ts',
|
||||
...entrypoints.map((module) => `./${module}/index.ts`),
|
||||
|
||||
Reference in New Issue
Block a user