npx tsup x.js --dts --format esm
⠙
Error: Cannot find module 'typescript'
Require stack:
- /Users/himself65/.npm/_npx/7d72304e626f8399/node_modules/tsup/dist/index.js
- /Users/himself65/.npm/_npx/7d72304e626f8399/node_modules/tsup/dist/chunk-CDF4QN4B.js
- /Users/himself65/.npm/_npx/7d72304e626f8399/node_modules/tsup/dist/cli-default.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
at Module._load (node:internal/modules/cjs/loader:986:27)
at Module.require (node:internal/modules/cjs/loader:1233:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (/Users/himself65/.npm/_npx/7d72304e626f8399/node_modules/tsup/dist/index.js:1021:19)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Module._load (node:internal/modules/cjs/loader:1024:12)
at Module.require (node:internal/modules/cjs/loader:1233:19)
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too