Skip to content

Commit

Permalink
fix: cant find typescript on init
Browse files Browse the repository at this point in the history
klap needs typescript as a dependency for types and usets flags but not for init. this release fixes
where typescript was incorrectly required during init

fix #198
  • Loading branch information
osdevisnot committed Mar 12, 2021
1 parent d8bb9da commit 24dfe45
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import replace from '@rollup/plugin-replace'

import nodeGlobals from 'rollup-plugin-node-globals'
import babel from '@rollup/plugin-babel'
import typescript from '@rollup/plugin-typescript'

import { terser } from './packages/terser.js'
import { sizeme } from './packages/sizeme.js'
Expand All @@ -28,7 +27,7 @@ const plugins = (command, pkg, options) => {
extensions,
}),
commonjs({ extensions, include: /\/node_modules\// }),
usets && typescript(),
usets && require('@rollup/plugin-typescript').default(),
babel({
...babelDefaults,
exclude: 'node_modules/**',
Expand Down

0 comments on commit 24dfe45

Please sign in to comment.