mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
Adjust postbuild Angular script
This commit is contained in:
parent
c44a6b8bbf
commit
5cc0e61684
5
code/frameworks/angular/scripts/postbuild.js
vendored
5
code/frameworks/angular/scripts/postbuild.js
vendored
@ -10,8 +10,5 @@ const path = require('path');
|
||||
|
||||
const filePath = path.join(__dirname, '../dist/client/public-types.d.ts');
|
||||
const fileContent = fs.readFileSync(filePath, 'utf8');
|
||||
const newContent = fileContent.replaceAll(
|
||||
/(\[K in keyof T\]: T\[K\] extends AngularCore.InputSignal)/g,
|
||||
' // @ts-ignore\n $1'
|
||||
);
|
||||
const newContent = fileContent.replaceAll(/(type AngularInputSignal)/g, '// @ts-ignore\n$1');
|
||||
fs.writeFileSync(filePath, newContent, 'utf8');
|
||||
|
Loading…
x
Reference in New Issue
Block a user