diff --git a/dev-lib/bundle-css.d.ts b/dev-lib/bundle-css.d.ts new file mode 100644 index 0000000000..49de64b643 --- /dev/null +++ b/dev-lib/bundle-css.d.ts @@ -0,0 +1 @@ +import "./vis-network.css"; diff --git a/dev-lib/bundle-esm-index.d.ts b/dev-lib/bundle-esm-index.d.ts new file mode 100644 index 0000000000..ab49b3b40a --- /dev/null +++ b/dev-lib/bundle-esm-index.d.ts @@ -0,0 +1 @@ +export * from "./esm"; diff --git a/dev-lib/bundle-vis-network-index.d.ts b/dev-lib/bundle-vis-network-index.d.ts new file mode 100644 index 0000000000..8c87cd973e --- /dev/null +++ b/dev-lib/bundle-vis-network-index.d.ts @@ -0,0 +1 @@ +export * from "./vis-network"; diff --git a/rollup.build.js b/rollup.build.js index 12e02d226c..a61822b3a4 100644 --- a/rollup.build.js +++ b/rollup.build.js @@ -80,6 +80,46 @@ export default [].concat.apply( src: `./dev-lib/bundle-${variant}.d.ts`, dest: ".", rename: umdFileWithoutExt + ".d.ts" + }, + { + src: "./dev-lib/bundle-esm-index.d.ts", + dest: ".", + rename: `${variant}/index.d.ts` + }, + { + src: "./dev-lib/bundle-esm-index.d.ts", + dest: ".", + rename: `${variant}/index.js` + }, + { + src: "./dev-lib/bundle-vis-network-index.d.ts", + dest: ".", + rename: `${variant}/esm/index.d.ts` + }, + { + src: "./dev-lib/bundle-vis-network-index.d.ts", + dest: ".", + rename: `${variant}/esm/index.js` + }, + { + src: "./dev-lib/bundle-vis-network-index.d.ts", + dest: ".", + rename: `${variant}/umd/index.d.ts` + }, + { + src: "./dev-lib/bundle-vis-network-index.d.ts", + dest: ".", + rename: `${variant}/umd/index.js` + }, + { + src: "./dev-lib/bundle-css.d.ts", + dest: ".", + rename: "styles/index.d.ts" + }, + { + src: "./dev-lib/bundle-css.d.ts", + dest: ".", + rename: "styles/index.js" } ] }),