Skip to content

edmorrish/typescript-rollup-repro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Rollup/Typescript bug replication repo

Reproduction case for: rollup/rollup#3224

This repo contains 2 npm modules, packages/with-rollup and packages/without-rollup. These contain identical code and typescript configurations, but one includes rollup as an unused dev-dependency. Both of these include a typescript file index.ts with an error, in the with-rollup package the error is not reported, in the without-rollup package the error is reported as expected.

How to reproduce

cd packages/without-rollup
npm i
npm run build

This should throw a TS2339 error: "Property 'find' does not exist on type 'number[]'."

cd ../with-rollup
npm i
npm run build

This is expected to throw a TS2339 error, but does not.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published