stacksjs / bun-plugin-dts-auto Goto Github PK
View Code? Open in Web Editor NEWAutomatically generate your TypeScript dts types (and sourcemaps), using Bun's bundler.
License: MIT License
Automatically generate your TypeScript dts types (and sourcemaps), using Bun's bundler.
License: MIT License
After applying #4 (comment) This patch to solve the issues with the package all .d.ts
files are created in the path where the files are.
Instead of creating all those .d.ts
files in the outDir
:
Not sure if this is the expected behaviour.
#!/usr/bin/env bun --bun
import dts from 'bun-plugin-dts-auto';
await Bun.build({
entrypoints: [
'./src/index.ts',
],
target: 'node',
sourcemap: "external",
minify: true,
root: './src',
outdir: './dist',
plugins: [
dts({
withSourceMap: true, // optional
}),
],
});
console.log('Build complete โ
');
System:
OS: macOS 12.6.7
CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Memory: 42.22 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 20.4.0 - ~/Library/Caches/fnm_multishells/45496_1690908490075/bin/node
npm: 9.7.2 - ~/Library/Caches/fnm_multishells/45496_1690908490075/bin/npm
pnpm: 8.6.6 - ~/.bun/bin/pnpm
Browsers:
Brave Browser: 115.1.56.14
Safari: 16.5.2
Bun: 0.7.3 (today's latest canary).
pnpm
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These problems occurred while renovating this repository. View logs.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
@commitlint/cli
, @types/bun
, bumpp
, eslint
, typescript
)package.json
@commitlint/cli ^19.2.1
@stacksjs/eslint-config ^0.59.11
@types/bun ^1.0.12
bumpp ^9.4.0
changelogen ^0.5.5
commitizen ^4.3.0
cz-git ^1.9.1
eslint ^9.0.0
lint-staged ^15.2.2
simple-git-hooks ^2.11.1
typescript ^5.4.4
.github/workflows/ci.yml
actions/checkout v4
oven-sh/setup-bun v1
actions/cache v4
actions/checkout v4
oven-sh/setup-bun v1
actions/cache v4
actions/checkout v4
oven-sh/setup-bun v1
actions/cache v4
.github/workflows/release.yml
actions/checkout v4
actions/setup-node v4
oven-sh/setup-bun v1
actions/cache v4
error: Could not resolve: "bun-plugin-dts-auto". Maybe you need to "bun install"?
import dts from 'bun-plugin-dts-auto'
^
/Users/experiments/totter/build.ts:1:17 16error: script "build" exited with code 1 (SIGHUP)
Errors when trying to consume the plugin
Manually editing package.json
in node_modules
to remove this line https://github.com/stacksjs/bun-plugin-dts-auto/blob/main/package.json#L25 seems to resolve the problem
Reproduction
System:
OS: macOS 13.5
CPU: (10) arm64 Apple M1 Pro
Memory: 240.33 MB / 32.00 GB
Shell: 5.9 - /opt/homebrew/bin/zsh
Binaries:
Node: 18.16.1 - ~/.asdf/installs/nodejs/18.16.1/bin/node
Yarn: 1.22.19 - ~/.yarn/bin/yarn
npm: 8.19.4 - ~/.asdf/plugins/nodejs/shims/npm
pnpm: 8.6.10 - ~/Library/pnpm/pnpm
Watchman: 2023.07.24.00 - /opt/homebrew/bin/watchman
Browsers:
Brave Browser: 115.1.56.20
Chrome: 115.0.5790.114
Edge: 114.0.1823.67
Safari: 16.6
bun
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Error type: Cannot find preset's package (@OW3)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.