Coder Social home page Coder Social logo

stacksjs / bun-plugin-dts-auto Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 0.0 1.66 MB

Automatically generate your TypeScript dts types (and sourcemaps), using Bun's bundler.

License: MIT License

TypeScript 57.35% JavaScript 42.65%
bun dts generation types bun-plugin sourcemaps

bun-plugin-dts-auto's Issues

Action Required: Fix Renovate Configuration

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)

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

These problems occurred while renovating this repository. View logs.

  • WARN: Using npm packages for Renovate presets is now deprecated. Please migrate to repository-based presets instead.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

bun
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-actions
.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

  • Check this box to trigger a request for Renovate to run again on this repository

Consuming the package doesn't work

Describe the bug

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

Reproduction

System Info

  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

Used Package Manager

bun

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

[Issue] Generate all .d.ts files in place instead of generate them in dist

Describe the bug

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.

Captura de Pantalla 2023-08-06 a las 14 31 02

Instead of creating all those .d.ts files in the outDir:

Captura de Pantalla 2023-08-06 a las 14 32 06

Not sure if this is the expected behaviour.

Reproduction

#!/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 Info

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).

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.