move templates

This commit is contained in:
Norbert de Langen 2022-10-18 10:12:04 +02:00
parent da9193981a
commit 27f3ff2c71
No known key found for this signature in database
GPG Key ID: FD0E78AF9A837762
4 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ export default async (
}); });
if (stories.length > 0) { if (stories.length > 0) {
const storyTemplate = await readTemplate( const storyTemplate = await readTemplate(
path.join(__dirname, 'virtualModuleStory.template.js') path.join(__dirname, '..', '..', 'templates', 'virtualModuleStory.template.js')
); );
// NOTE: this file has a `.cjs` extension as it is a CJS file (from `dist/cjs`) and runs // NOTE: this file has a `.cjs` extension as it is a CJS file (from `dist/cjs`) and runs
// in the user's webpack mode, which may be strict about the use of require/import. // in the user's webpack mode, which may be strict about the use of require/import.

View File

@ -4,6 +4,6 @@
"strict": true, "strict": true,
"skipLibCheck": true "skipLibCheck": true
}, },
"include": ["src/**/*", "typings.d.ts"], "include": ["src/**/*", "typings.d.ts", "templates/virtualModuleEntry.template.js"],
"exclude": ["src/**.test.ts"] "exclude": ["src/**.test.ts"]
} }