Skip to content

dts watch doesn't work as expected #210

Description

@Jedliu

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 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions