Skip to content

Commit

Permalink
feat(tools): add new 'environment' global type to migration generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Hotell committed Nov 16, 2021
1 parent 3bef82d commit 3648642
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tools/generators/migrate-converged-pkg/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ describe('migrate-converged-pkg generator', () => {
lib: ['ES2019', 'dom'],
noEmit: false,
outDir: 'dist',
types: ['static-assets', 'inline-style-expand-shorthand'],
types: ['static-assets', 'environment', 'inline-style-expand-shorthand'],
},
exclude: ['./src/common/**', '**/*.spec.ts', '**/*.spec.tsx', '**/*.test.ts', '**/*.test.tsx'],
include: ['./src/**/*.ts', './src/**/*.tsx'],
Expand Down Expand Up @@ -565,7 +565,7 @@ describe('migrate-converged-pkg generator', () => {
allowJs: true,
checkJs: true,
outDir: '',
types: ['static-assets', 'inline-style-expand-shorthand', 'storybook__addons'],
types: ['static-assets', 'environment', 'inline-style-expand-shorthand', 'storybook__addons'],
},
exclude: ['../src/common/**', '../**/*.spec.ts', '../**/*.spec.tsx', '../**/*.test.ts', '../**/*.test.tsx'],
include: ['../src/**/*', '*.js'],
Expand Down
2 changes: 1 addition & 1 deletion tools/generators/migrate-converged-pkg/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const templates = {
lib: ['ES2019'],
outDir: 'dist',
declaration: true,
types: ['static-assets'],
types: ['static-assets', 'environment'],
} as TsConfig['compilerOptions'],
exclude: ['**/*.spec.ts', '**/*.spec.tsx', '**/*.test.ts', '**/*.test.tsx'],
include: ['./src/**/*.ts', './src/**/*.tsx'],
Expand Down

0 comments on commit 3648642

Please sign in to comment.