This repository has been archived by the owner on Mar 6, 2024. It is now read-only.
generated from storybookjs/addon-kit
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move to yarn 3; Add missing peer deps (#69)
* Update yarn to v3 * Remove unused code * Simplify tsup setup * Add missing peerDeps Co-authored-by: Norbert de Langen <ndelangen@me.com>
- Loading branch information
Showing
11 changed files
with
13,863 additions
and
8,952 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-3.6.1.cjs |
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
Empty file.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { defineConfig } from "tsup"; | ||
|
||
export default defineConfig((options) => [ | ||
{ | ||
entry: [ | ||
"src/index.ts", | ||
"src/preview.ts", | ||
"src/manager.ts", | ||
"src/preset.ts", | ||
], | ||
splitting: false, | ||
minify: !options.watch, | ||
format: ["cjs", "esm"], | ||
dts: { | ||
resolve: true, | ||
}, | ||
treeshake: true, | ||
sourcemap: true, | ||
clean: true, | ||
platform: "browser", | ||
esbuildOptions(options) { | ||
options.conditions = ["module"]; | ||
}, | ||
}, | ||
{ | ||
entry: ["src/postinstall.ts"], | ||
outDir: "./bin", | ||
splitting: false, | ||
minify: !options.watch, | ||
format: ["cjs"], | ||
treeshake: true, | ||
target: "node16", | ||
clean: true, | ||
platform: "node", | ||
esbuildOptions(options) { | ||
options.conditions = ["module"]; | ||
}, | ||
}, | ||
]); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.