Skip to content

Commit

Permalink
build: 🏷️ update build script to include all type data
Browse files Browse the repository at this point in the history
  • Loading branch information
thkruz committed Aug 6, 2022
1 parent b80fe78 commit ce752f9
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions scripts/webpack.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
const CopyPlugin = require('copy-webpack-plugin');

let config = {
const config = {
plugins: [
new CopyPlugin({
patterns: [{ from: 'lib/*.d.ts', to: '[name][ext]' }],
patterns: [
{
from: '**/*.d.ts',
context: 'lib',
},
],
}),
],
module: {
Expand All @@ -21,7 +26,7 @@ let config = {
resolve: {
alias: {
// eslint-disable-next-line no-path-concat, no-undef
'@src': __dirname + '/../src',
'@src': `${__dirname}/../src`,
},
},
};
Expand All @@ -38,7 +43,7 @@ const lib = {
library: 'Ootk',
libraryTarget: 'umd',
// eslint-disable-next-line no-path-concat, no-undef
path: __dirname + '/../dist',
path: `${__dirname}/../dist`,
globalObject: 'this',
},
optimization: {
Expand Down

0 comments on commit ce752f9

Please sign in to comment.