File tree Expand file tree Collapse file tree 5 files changed +10
-9
lines changed
Expand file tree Collapse file tree 5 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 11import { ChildProcess } from "node:child_process" ;
22import fs from "node:fs" ;
3- import { bin , install , tunnel } from "../lib" ;
3+ import { bin , install , tunnel } from "../lib.js " ;
44
55process . env . VERBOSE = "1" ;
66
Original file line number Diff line number Diff line change 11import fs from "node:fs" ;
22import { spawn } from "node:child_process" ;
3- import { bin , install } from "./lib" ;
3+ import { bin , install } from "./lib.js " ;
44
55main ( ) ;
66
Original file line number Diff line number Diff line change 1- export { bin } from "./constants" ;
2- export { install } from "./install" ;
3- export { tunnel , Connection } from "./utils" ;
1+ export { bin } from "./constants.js" ;
2+ export { install } from "./install.js" ;
3+ export { tunnel } from "./utils.js" ;
4+ export type { Connection } from "./utils.js" ;
Original file line number Diff line number Diff line change 11import { spawn , ChildProcess } from "node:child_process" ;
2- import { bin } from "./constants" ;
2+ import { bin } from "./constants.js " ;
33
44/**
55 * Create a tunnel.
Original file line number Diff line number Diff line change 11import { defineConfig } from "tsup" ;
22
33export default defineConfig ( ( options ) => ( {
4- entry : [ "src/index.ts" , "src/lib .ts"] ,
4+ entry : [ "src/* .ts" ] ,
55 outDir : "lib" ,
66 target : "node14" ,
77 format : [ "cjs" , "esm" ] ,
88 shims : true ,
99 clean : true ,
1010 splitting : false ,
11- // minify: !options.watch ,
12- dts : ! options . watch ,
11+ bundle : false ,
12+ dts : options . watch ? false : { entry : "src/lib.ts" } ,
1313} ) ) ;
You can’t perform that action at this time.
0 commit comments