-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
78 additions
and
305 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,7 @@ | ||
import { defineConfig } from "tsup"; | ||
import { baseConfig } from "../../tsup.config.base"; | ||
|
||
export default defineConfig((opts) => ({ | ||
...baseConfig(opts), | ||
entry: ["src/exports/internal.ts", "src/bin/abi-ts.ts"], | ||
target: "esnext", | ||
format: ["esm"], | ||
sourcemap: true, | ||
minify: true, | ||
// don't generate DTS during watch mode because it's slow | ||
// we're likely using TS source in this mode anyway | ||
dts: !opts.watch, | ||
// don't clean during watch mode to avoid removing | ||
// previously-built DTS files, which other build tasks | ||
// depend on | ||
clean: !opts.watch, | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,7 @@ | ||
import { defineConfig } from "tsup"; | ||
import { baseConfig } from "../../tsup.config.base"; | ||
|
||
export default defineConfig((opts) => ({ | ||
...baseConfig(opts), | ||
entry: ["src/exports/index.ts"], | ||
target: "esnext", | ||
format: ["esm"], | ||
sourcemap: true, | ||
minify: true, | ||
// don't generate DTS during watch mode because it's slow | ||
// we're likely using TS source in this mode anyway | ||
dts: !opts.watch, | ||
// don't clean during watch mode to avoid removing | ||
// previously-built DTS files, which other build tasks | ||
// depend on | ||
clean: !opts.watch, | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,11 @@ | ||
import { defineConfig } from "tsup"; | ||
import { baseConfig } from "../../tsup.config.base"; | ||
|
||
export default defineConfig((opts) => ({ | ||
...baseConfig(opts), | ||
entry: { | ||
index: "src/exports/index.ts", | ||
internal: "src/exports/internal.ts", | ||
"deprecated/node": "src/deprecated/node/index.ts", | ||
}, | ||
target: "esnext", | ||
format: ["esm"], | ||
sourcemap: true, | ||
minify: true, | ||
// don't generate DTS during watch mode because it's slow | ||
// we're likely using TS source in this mode anyway | ||
dts: !opts.watch, | ||
// don't clean during watch mode to avoid removing | ||
// previously-built DTS files, which other build tasks | ||
// depend on | ||
clean: !opts.watch, | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,7 @@ | ||
import { defineConfig } from "tsup"; | ||
import { baseConfig } from "../../tsup.config.base"; | ||
|
||
export default defineConfig((opts) => ({ | ||
...baseConfig(opts), | ||
entry: ["src/bin/cli.ts"], | ||
target: "esnext", | ||
format: ["esm"], | ||
minify: true, | ||
sourcemap: true, | ||
// don't generate DTS during watch mode because it's slow | ||
// we're likely using TS source in this mode anyway | ||
dts: !opts.watch, | ||
// don't clean during watch mode to avoid removing | ||
// previously-built DTS files, which other build tasks | ||
// depend on | ||
clean: !opts.watch, | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,13 @@ | ||
import { defineConfig } from "tsup"; | ||
import { baseConfig } from "../../tsup.config.base"; | ||
// import packageJson from "./package.json"; | ||
|
||
export default defineConfig((opts) => ({ | ||
...baseConfig(opts), | ||
outDir: "dist/tsup", | ||
entry: ["src/exports/index.ts", "src/exports/internal.ts", "src/bin/deploy.ts"], | ||
target: "esnext", | ||
format: ["esm"], | ||
sourcemap: true, | ||
minify: true, | ||
// Because we're injecting CSS via shadow DOM, we'll disable style injection and load CSS as a base64 string. | ||
// TODO: figure out how to do this conditionally for only specific imports? | ||
injectStyle: false, | ||
loader: { ".css": "text" }, | ||
dts: true, | ||
// don't clean during watch mode to avoid removing | ||
// previously-built DTS files, which other build tasks | ||
// depend on | ||
clean: !opts.watch, | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,8 @@ | ||
import { defineConfig } from "tsup"; | ||
import { baseConfig } from "../../tsup.config.base"; | ||
|
||
export default defineConfig((opts) => ({ | ||
...baseConfig(opts), | ||
tsconfig: "tsconfig.tsup.json", | ||
entry: ["src/bin/explorer.ts", "src/exports/observer.ts"], | ||
target: "esnext", | ||
format: ["esm"], | ||
sourcemap: true, | ||
minify: false, | ||
// don't generate DTS during watch mode because it's slow | ||
// we're likely using TS source in this mode anyway | ||
dts: !opts.watch, | ||
// don't clean during watch mode to avoid removing | ||
// previously-built DTS files, which other build tasks | ||
// depend on | ||
clean: !opts.watch, | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,7 @@ | ||
import { defineConfig } from "tsup"; | ||
import { baseConfig } from "../../tsup.config.base"; | ||
|
||
export default defineConfig((opts) => ({ | ||
...baseConfig(opts), | ||
entry: ["src/index.ts", "src/bin/faucet-server.ts"], | ||
target: "esnext", | ||
format: ["esm"], | ||
sourcemap: true, | ||
minify: true, | ||
// don't generate DTS during watch mode because it's slow | ||
// we're likely using TS source in this mode anyway | ||
dts: !opts.watch, | ||
// don't clean during watch mode to avoid removing | ||
// previously-built DTS files, which other build tasks | ||
// depend on | ||
clean: !opts.watch, | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,7 @@ | ||
import { defineConfig } from "tsup"; | ||
import { baseConfig } from "../../tsup.config.base"; | ||
|
||
export default defineConfig((opts) => ({ | ||
...baseConfig(opts), | ||
entry: ["ts/exports/internal.ts", "ts/bin/gas-report.ts"], | ||
target: "esnext", | ||
format: ["esm"], | ||
sourcemap: true, | ||
minify: true, | ||
// don't generate DTS during watch mode because it's slow | ||
// we're likely using TS source in this mode anyway | ||
dts: !opts.watch, | ||
// don't clean during watch mode to avoid removing | ||
// previously-built DTS files, which other build tasks | ||
// depend on | ||
clean: !opts.watch, | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,10 @@ | ||
import { defineConfig } from "tsup"; | ||
import { baseConfig } from "../../tsup.config.base"; | ||
|
||
export default defineConfig((opts) => ({ | ||
...baseConfig(opts), | ||
entry: { | ||
index: "src/exports/index.ts", | ||
internal: "src/exports/internal.ts", | ||
}, | ||
target: "esnext", | ||
format: ["esm"], | ||
sourcemap: true, | ||
minify: true, | ||
// don't generate DTS during watch mode because it's slow | ||
// we're likely using TS source in this mode anyway | ||
dts: !opts.watch, | ||
// don't clean during watch mode to avoid removing | ||
// previously-built DTS files, which other build tasks | ||
// depend on | ||
clean: !opts.watch, | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,7 @@ | ||
import { defineConfig } from "tsup"; | ||
import { baseConfig } from "../../tsup.config.base"; | ||
|
||
export default defineConfig((opts) => ({ | ||
...baseConfig(opts), | ||
entry: ["src/index.ts"], | ||
target: "esnext", | ||
format: ["esm"], | ||
sourcemap: true, | ||
minify: true, | ||
// don't generate DTS during watch mode because it's slow | ||
// we're likely using TS source in this mode anyway | ||
dts: !opts.watch, | ||
// don't clean during watch mode to avoid removing | ||
// previously-built DTS files, which other build tasks | ||
// depend on | ||
clean: !opts.watch, | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,7 @@ | ||
import { defineConfig } from "tsup"; | ||
import { baseConfig } from "../../tsup.config.base"; | ||
|
||
export default defineConfig((opts) => ({ | ||
...baseConfig(opts), | ||
entry: ["src/index.ts", "src/deprecated/index.ts"], | ||
target: "esnext", | ||
format: ["esm"], | ||
sourcemap: true, | ||
minify: true, | ||
// don't generate DTS during watch mode because it's slow | ||
// we're likely using TS source in this mode anyway | ||
dts: !opts.watch, | ||
// don't clean during watch mode to avoid removing | ||
// previously-built DTS files, which other build tasks | ||
// depend on | ||
clean: !opts.watch, | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,11 @@ | ||
import { defineConfig } from "tsup"; | ||
import { baseConfig } from "../../tsup.config.base"; | ||
|
||
export default defineConfig((opts) => ({ | ||
...baseConfig(opts), | ||
entry: { | ||
index: "src/typescript/exports/index.ts", | ||
internal: "src/typescript/exports/internal.ts", | ||
deprecated: "src/typescript/exports/deprecated.ts", | ||
}, | ||
outDir: "dist", | ||
target: "esnext", | ||
format: ["esm"], | ||
sourcemap: true, | ||
minify: true, | ||
injectStyle: true, | ||
// don't generate DTS during watch mode because it's slow | ||
// we're likely using TS source in this mode anyway | ||
dts: !opts.watch, | ||
// don't clean during watch mode to avoid removing | ||
// previously-built DTS files, which other build tasks | ||
// depend on | ||
clean: !opts.watch, | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,7 @@ | ||
import { defineConfig } from "tsup"; | ||
import { baseConfig } from "../../tsup.config.base"; | ||
|
||
export default defineConfig((opts) => ({ | ||
...baseConfig(opts), | ||
entry: ["src/index.ts"], | ||
target: "esnext", | ||
format: ["cjs"], | ||
sourcemap: true, | ||
minify: true, | ||
// don't generate DTS during watch mode because it's slow | ||
// we're likely using TS source in this mode anyway | ||
dts: !opts.watch, | ||
// don't clean during watch mode to avoid removing | ||
// previously-built DTS files, which other build tasks | ||
// depend on | ||
clean: !opts.watch, | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,7 @@ | ||
import { defineConfig } from "tsup"; | ||
import { baseConfig } from "../../tsup.config.base"; | ||
|
||
export default defineConfig((opts) => ({ | ||
...baseConfig(opts), | ||
entry: ["src/index.ts"], | ||
target: "esnext", | ||
format: ["cjs"], | ||
sourcemap: true, | ||
minify: true, | ||
// don't generate DTS during watch mode because it's slow | ||
// we're likely using TS source in this mode anyway | ||
dts: !opts.watch, | ||
// don't clean during watch mode to avoid removing | ||
// previously-built DTS files, which other build tasks | ||
// depend on | ||
clean: !opts.watch, | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,7 @@ | ||
import { defineConfig } from "tsup"; | ||
import { baseConfig } from "../../tsup.config.base"; | ||
|
||
export default defineConfig((opts) => ({ | ||
...baseConfig(opts), | ||
entry: ["src/exports/index.ts", "src/exports/internal.ts", "src/exports/react.ts"], | ||
target: "esnext", | ||
format: ["esm"], | ||
sourcemap: true, | ||
minify: true, | ||
// don't generate DTS during watch mode because it's slow | ||
// we're likely using TS source in this mode anyway | ||
dts: !opts.watch, | ||
// don't clean during watch mode to avoid removing | ||
// previously-built DTS files, which other build tasks | ||
// depend on | ||
clean: !opts.watch, | ||
})); |
Oops, something went wrong.