Skip to content

Commit

Permalink
fix(rollup): copy index.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTelanie committed Oct 9, 2021
1 parent c301cb2 commit aa86fcf
Show file tree
Hide file tree
Showing 4 changed files with 548 additions and 16 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,4 @@ build
/index-*.js
/glsl.js
/index.js
/index.d.ts
11 changes: 10 additions & 1 deletion .rolluprc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const babel = require('rollup-plugin-babel');
const resolve = require('rollup-plugin-node-resolve');
const minify = require('rollup-plugin-babel-minify');
const commonjs = require('rollup-plugin-commonjs');
const copy = require('rollup-plugin-copy');

module.exports = [
{
Expand Down Expand Up @@ -29,6 +30,14 @@ module.exports = [
exclude: 'node_modules/**',
presets: [['@babel/preset-env', { modules: false }]]
}),
copy({
targets: [
{
src: "src/index.d.ts",
dest: "./",
}
]
})
]
}, ...[
{
Expand Down Expand Up @@ -71,6 +80,6 @@ module.exports = [
bannerNewLine: true
})
]
}
};
})
];
Loading

0 comments on commit aa86fcf

Please sign in to comment.