Skip to content

Commit

Permalink
build: include comments in dist/**/*.d.ts files
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSolati committed Aug 1, 2020
1 parent cace72c commit ef4e636
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
31 changes: 21 additions & 10 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@ const onwarn = (warning, rollupWarn) => {
}
};

const ts = typescript({
tsconfigOverride: {
compilerOptions: {
module: 'ESNext',
},
},
});

export default [
{
input: 'src/index.ts',
Expand All @@ -32,7 +24,16 @@ export default [
},
],
external: ['@types/node', 'geofirestore-core'],
plugins: [ts],
plugins: [
typescript({
tsconfigOverride: {
compilerOptions: {
module: 'ESNext',
removeComments: true,
},
},
}),
],
onwarn,
},
{
Expand All @@ -44,7 +45,17 @@ export default [
extend: true,
},
external: ['@types/node'],
plugins: [ts, resolve(), terser()],
plugins: [
typescript({
tsconfigOverride: {
compilerOptions: {
module: 'ESNext',
},
},
}),
resolve(),
terser(),
],
onwarn,
},
];
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"strictNullChecks": false,
"strictPropertyInitialization": false,
"declaration": true,
"removeComments": true,
"removeComments": false,
"target": "es2017",
"typeRoots": ["node_modules/@types"],
"lib": ["es2017", "dom"]
Expand Down

0 comments on commit ef4e636

Please sign in to comment.