packages/cli/commands/plugin: include js in typescript compilation + exclude testUtils
This commit is contained in:
@@ -22,6 +22,7 @@ import postcss from 'rollup-plugin-postcss';
|
||||
import imageFiles from 'rollup-plugin-image-files';
|
||||
import json from '@rollup/plugin-json';
|
||||
import { RollupWatchOptions } from 'rollup';
|
||||
import { paths } from '../../helpers/paths';
|
||||
|
||||
export default {
|
||||
input: 'src/index.ts',
|
||||
@@ -43,6 +44,9 @@ export default {
|
||||
postcss(),
|
||||
imageFiles(),
|
||||
json(),
|
||||
typescript(),
|
||||
typescript({
|
||||
include: `${paths.resolveTarget('src')}/**/*.{js,jsx,ts,tsx}`,
|
||||
exclude: [paths.resolveTarget('src/testUtils/**')],
|
||||
}),
|
||||
],
|
||||
} as RollupWatchOptions;
|
||||
|
||||
Reference in New Issue
Block a user