Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dts watch doesn't work as expected #210

Open
Jedliu opened this issue Jan 29, 2024 · 2 comments
Open

dts watch doesn't work as expected #210

Jedliu opened this issue Jan 29, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Jedliu
Copy link

Jedliu commented Jan 29, 2024

First of all, thank you for all your contributions to this library.

Current Behavior

  1. Create the lib npx dts-cli create mylib and choose basic template
  2. run npm run start
  3. update index.ts
iShot_2024-01-29_08 47 29

Expected behavior

dts-cli-lib.cjs.development.js and dts-cli-lib.esm.js should be updated in the dist folder.
However, dts-cli-lib.esm.js is not updated. See the above image for your reference.

Suggested solution(s)

Additional context

Your environment

  System:
    OS: macOS 12.7.1
    CPU: (8) x64 Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
    Memory: 387.54 MB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.19.0 - ~/.nvm/versions/node/v18.19.0/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - ~/.nvm/versions/node/v18.19.0/bin/npm
    pnpm: 8.6.3 - ~/Library/pnpm/pnpm
  Browsers:
    Brave Browser: 121.1.62.153
    Chrome: 121.0.6167.85
    Safari: 16.3
  npmPackages:
    dts-cli: ^2.0.4 => 2.0.4 
    typescript: ^5.3.3 => 5.3.3 

@aladdin-add
Copy link

thanks for the report, I was able to repro.

@aladdin-add aladdin-add added the bug Something isn't working label Jan 29, 2024
@OlegWock
Copy link

You can work around this by specifying format explicitly:

yarn start --format esm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants