rimraf also removes d.ts file in node_modules
Cryrivers opened this issue · 0 comments
Cryrivers commented
So TS failed to generate the type declarations.
> rimraf '+(*.d.ts|*.js)'
Successfully compiled 17 files with Babel.
error TS2318: Cannot find global type 'Array'.
error TS2318: Cannot find global type 'Boolean'.
error TS2318: Cannot find global type 'Function'.
error TS2318: Cannot find global type 'IArguments'.
error TS2318: Cannot find global type 'Number'.
error TS2318: Cannot find global type 'Object'.
error TS2318: Cannot find global type 'RegExp'.
error TS2318: Cannot find global type 'String'.
error TS2688: Cannot find type definition file for 'jest'.
error TS2688: Cannot find type definition file for 'prop-types'.
error TS2688: Cannot find type definition file for 'react'.
error TS6053: File '/Users/xxx/Desktop/the-platform/node_modules/typescript/lib/lib.dom.d.ts' not found.
error TS6053: File '/Users/xxx/Desktop/the-platform/node_modules/typescript/lib/lib.es2015.d.ts' not found.