-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(bump): sdk uses contracts 2.0.0-alpha.1
- Loading branch information
1 parent
1c8a4ee
commit cb3c996
Showing
11 changed files
with
96 additions
and
163 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
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,43 +1,37 @@ | ||
import commonjs from "@rollup/plugin-commonjs"; | ||
import json from "@rollup/plugin-json"; | ||
import dts from "rollup-plugin-dts"; | ||
import { nodeResolve } from "@rollup/plugin-node-resolve"; | ||
import json from "@rollup/plugin-json"; | ||
import autoExternal from "rollup-plugin-auto-external"; | ||
import dts from "rollup-plugin-dts"; | ||
import esbuild from "rollup-plugin-esbuild"; | ||
import nodePolyfills from "rollup-plugin-node-polyfills"; | ||
import swc from "rollup-plugin-swc3"; | ||
|
||
export default [ | ||
{ | ||
input: `build/src/index.js`, | ||
input: `src/index.ts`, | ||
plugins: [ | ||
autoExternal(), | ||
nodePolyfills(), | ||
json(), | ||
commonjs(), | ||
nodeResolve(), | ||
esbuild({ tsconfig: "tsconfig.build.json" }), | ||
nodeResolve({ jsnext: true, preferBuiltins: false, browser: true }), | ||
swc(), | ||
], | ||
output: [ | ||
{ | ||
format: "esm", | ||
dir: "dist/esm", | ||
sourcemap: true, | ||
exports: "named", | ||
entryFileNames: "index.mjs", | ||
}, | ||
{ | ||
format: "cjs", | ||
dir: "dist/cjs", | ||
sourcemap: true, | ||
exports: "named", | ||
entryFileNames: "index.cjs", | ||
}, | ||
], | ||
}, | ||
{ | ||
input: `build/src/index.d.ts`, | ||
input: `src/index.ts`, | ||
plugins: [json(), dts()], | ||
output: { | ||
file: `dist/index.d.ts`, | ||
format: "es", | ||
}, | ||
}, | ||
]; |
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
Oops, something went wrong.