You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

bun-plugin-dts

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bun-plugin-dts - npm Package Compare versions

Comparing version

to
0.2.1

dist/app.d.ts

2

dist/index.js

@@ -1,1 +0,1 @@

import J from"node:path";import w from"node:fs";import{getTsconfig as K} from"get-tsconfig";import{generateDtsBundle as L} from"dts-bundle-generator";var M=(z)=>{return{name:"bun-dts-generator",async setup(k){const{compilationOptions:q,...A}=z||{},v=[...k.config.entrypoints].sort(),B=v.map((j)=>{return{filePath:j,...A}}),C=q?.preferredConfigPath??K()?.path,E=L(B,{...q,preferredConfigPath:C}),P=k.config.outdir||"./dist";if(!w.existsSync(P))w.mkdirSync(P);await Promise.all(v.map((j,G)=>{const H=j.replace(/^.*\//,"").replace(/\.ts$/,".d.ts"),I=J.join(P,H);return Bun.write(I,E[G])}))}}},V=M;export{V as default};
import w from"node:fs";import K from"node:path";import{generateDtsBundle as L} from"dts-bundle-generator";import{getTsconfig as M} from"get-tsconfig";var N=(z)=>{return{name:"bun-plugin-dts",async setup(m){const{compilationOptions:q,...A}=z||{},v=[...m.config.entrypoints].sort(),C=v.map((k)=>{return{filePath:k,...A}}),E=q?.preferredConfigPath??M()?.path,G=L(C,{...q,preferredConfigPath:E}),j=m.config.outdir||"./dist";if(!w.existsSync(j))w.mkdirSync(j);await Promise.all(v.map((k,H)=>{const I=k.replace(/^.*\//,"").replace(/\.[jtm]s$/,".d.ts"),J=K.join(j,I);return Bun.write(J,G[H])}))}}},V=N;export{V as default};
{
"name": "bun-plugin-dts",
"version": "0.2.0",
"version": "0.2.1",
"main": "dist/index.js",

@@ -11,4 +11,4 @@ "types": "dist/index.d.ts",

"release": "bumpp && npm publish",
"lint": "eslint .",
"lint:fix": "eslint . --fix"
"lint": "biome check src",
"format": "biome format src --write"
},

@@ -34,9 +34,7 @@ "files": [

"devDependencies": {
"@antfu/eslint-config": "^0.41.0",
"bumpp": "^9.2.0",
"bun-types": "^1.0.1",
"eslint": "^8.49.0",
"eslint-plugin-import": "^2.28.1",
"@biomejs/biome": "1.2.2",
"typescript": "^5.2.2"
}
}

@@ -17,3 +17,3 @@ # bun-plugin-dts

await Bun.build({
entrypoints: ['./src/index.ts'],
entrypoints: ['./src/index.ts', './src/other.ts'],
outdir: './dist',

@@ -24,2 +24,4 @@ plugins: [

})
// Generates `dist/index.d.ts` and `dist/other.d.ts`
```

@@ -26,0 +28,0 @@