Skip to content

Commit 046ed3d

Browse files
author
Fifciuu
committed
fix: theme/index error fixed
1 parent b303544 commit 046ed3d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

core/scripts/generate-files.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,10 @@ csvDirectories.push(path.resolve(__dirname, themeResources + '/i18n/'));
2626

2727
const translationPreprocessor = require('@vue-storefront/i18n/scripts/translation.preprocessor.js')
2828
translationPreprocessor(csvDirectories, config)
29+
30+
const tsconfig = require('../../tsconfig.json');
31+
tsconfig.compilerOptions.paths['theme/*'] = [
32+
`${themeRoot}/*`
33+
];
34+
35+
require('fs').writeFileSync('tsconfig.json', JSON.stringify(tsconfig, null, 2));

0 commit comments

Comments
 (0)