Fix initial code step functionInput (#18002)
At code step creation ## before <img width="623" height="816" alt="image" src="https://github.com/user-attachments/assets/0aed5ed8-8d56-4988-9d31-fe80942191bb" /> ## after <img width="627" height="528" alt="image" src="https://github.com/user-attachments/assets/9e2a5cb9-7480-4734-8e41-25b45edcec07" />
This commit is contained in:
@@ -26,10 +26,7 @@ const twentyUiIndividualIndex = path.resolve(
|
||||
'../../../twenty-ui/dist/individual/individual-entry.js',
|
||||
);
|
||||
|
||||
const sdkIndividualIndex = path.resolve(
|
||||
dirname,
|
||||
'../../dist/sdk/index.js',
|
||||
);
|
||||
const sdkIndividualIndex = path.resolve(dirname, '../../dist/sdk/index.js');
|
||||
|
||||
const twentySharedIndividualDir = path.resolve(
|
||||
dirname,
|
||||
@@ -107,19 +104,12 @@ type BundleSizeEntry = {
|
||||
const collectBundleSizes = (): BundleSizeEntry[] =>
|
||||
STORY_COMPONENTS.map((name) => {
|
||||
const reactFile = path.join(exampleSourcesBuiltDir, `${name}.mjs`);
|
||||
const preactFile = path.join(
|
||||
exampleSourcesBuiltPreactDir,
|
||||
`${name}.mjs`,
|
||||
);
|
||||
const preactFile = path.join(exampleSourcesBuiltPreactDir, `${name}.mjs`);
|
||||
|
||||
return {
|
||||
name,
|
||||
reactBytes: fs.existsSync(reactFile)
|
||||
? fs.statSync(reactFile).size
|
||||
: 0,
|
||||
preactBytes: fs.existsSync(preactFile)
|
||||
? fs.statSync(preactFile).size
|
||||
: 0,
|
||||
reactBytes: fs.existsSync(reactFile) ? fs.statSync(reactFile).size : 0,
|
||||
preactBytes: fs.existsSync(preactFile) ? fs.statSync(preactFile).size : 0,
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user