Skip to content

Commit e7afe01

Browse files
committed
Clean up rollup configuration
1 parent e8987d2 commit e7afe01

File tree

3 files changed

+18
-26
lines changed

3 files changed

+18
-26
lines changed

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,5 @@ deploy:
2525
- provider: npm
2626
email: $NPM_EMAIL
2727
api_key: $NPM_TOKEN
28-
edge: true
2928
on:
3029
tags: true

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Flexible, typed and easy to use React Component ⚛ to provide CSV, TSV and other delimiter-separated values formats (DSV) import functionality.",
44
"keywords": ["react-component", "typescript", "react"],
55
"homepage": "https://openscript.github.io/react-dsv-import/",
6-
"version": "0.0.2",
6+
"version": "0.0.3",
77
"main": "dist/index.js",
88
"module": "dist/es/index.js",
99
"types": "dist/index.d.ts",

rollup.config.js

+17-24
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,24 @@
11
import typescript from '@rollup/plugin-typescript';
22
import pkg from './package.json';
33

4-
const outputDefaults = { globals: { react: 'React' }, "sourcemap": true };
4+
const outputDefaults = { globals: { react: 'React' }, sourcemap: true };
55
const defaults = {
6-
input: 'src/index.tsx',
7-
external: [
8-
...Object.keys(pkg.peerDependencies || {})
9-
],
10-
plugins: [
11-
typescript()
12-
]
13-
}
6+
input: 'src/index.tsx',
7+
external: [...Object.keys(pkg.peerDependencies || {})],
8+
plugins: [typescript()]
9+
};
1410

1511
export default [
16-
{
17-
...defaults,
18-
output: [
19-
{ dir: 'dist/iife', name: 'ReactDSVImport', format: 'iife', ...outputDefaults },
20-
{ dir: 'dist/es', format: 'es', ...outputDefaults }
21-
]
22-
}, {
23-
...defaults,
24-
plugins: [
25-
typescript({ declaration: true, declarationDir: 'dist' })
26-
],
27-
output: [
28-
{ dir: 'dist', format: 'cjs', ...outputDefaults }
29-
]
30-
}
12+
{
13+
...defaults,
14+
output: [
15+
{ dir: 'dist/iife', name: 'ReactDSVImport', format: 'iife', ...outputDefaults },
16+
{ dir: 'dist/es', format: 'es', ...outputDefaults }
17+
]
18+
},
19+
{
20+
...defaults,
21+
plugins: [typescript({ declaration: true, declarationDir: 'dist' })],
22+
output: [{ dir: 'dist', format: 'cjs', ...outputDefaults }]
23+
}
3124
];

0 commit comments

Comments
 (0)