Skip to content

Commit 402adf5

Browse files
committed
fix(dsv): prepare for Rollup 3
BREAKING CHANGES: Requires Node 14
1 parent f0efdfb commit 402adf5

File tree

5 files changed

+56
-38
lines changed

5 files changed

+56
-38
lines changed

packages/dsv/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
## Requirements
1515

16-
This plugin requires an [LTS](https://github.com/nodejs/Release) Node version (v8.0.0+) and Rollup v1.20.0+.
16+
This plugin requires an [LTS](https://github.com/nodejs/Release) Node version (v14.0.0+) and Rollup v1.20.0+.
1717

1818
## Install
1919

packages/dsv/package.json

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,13 @@
1313
"author": "Rich Harris",
1414
"homepage": "https://github.com/rollup/plugins/tree/master/packages/dsv#readme",
1515
"bugs": "https://github.com/rollup/plugins/issues",
16-
"main": "dist/index.js",
17-
"module": "dist/index.es.js",
16+
"main": "./dist/cjs/index.js",
17+
"module": "./dist/es/index.js",
18+
"exports": {
19+
"import": "./dist/es/index.js",
20+
"types": "./types/index.d.ts",
21+
"default": "./dist/cjs/index.js"
22+
},
1823
"scripts": {
1924
"build": "rollup -c",
2025
"ci:coverage": "nyc pnpm test && nyc report --reporter=text-lcov > coverage.lcov",
@@ -30,25 +35,32 @@
3035
},
3136
"files": [
3237
"dist",
38+
"!dist/**/*.map",
3339
"types",
3440
"README.md",
3541
"LICENSE"
3642
],
43+
"peerDependencies": {
44+
"rollup": "^1.20.0||^2.0.0||^3.0.0"
45+
},
46+
"peerDependenciesMeta": {
47+
"rollup": {
48+
"optional": true
49+
}
50+
},
3751
"dependencies": {
38-
"@rollup/pluginutils": "^3.1.0",
39-
"@types/d3-dsv": "~1.2.0",
40-
"d3-dsv": "1.2.0",
41-
"tosource": "^1.0.0"
52+
"@rollup/pluginutils": "^4.2.1",
53+
"@types/d3-dsv": "^3.0.0",
54+
"d3-dsv": "2.0.0",
55+
"tosource": "^2.0.0-alpha.3"
4256
},
4357
"devDependencies": {
44-
"del-cli": "^3.0.1",
45-
"rollup": "^2.67.3"
58+
"del-cli": "^5.0.0",
59+
"rollup": "^3.0.0-7"
4660
},
4761
"types": "./types/index.d.ts",
4862
"ava": {
49-
"babel": {
50-
"compileEnhancements": false
51-
},
63+
"workerThreads": false,
5264
"files": [
5365
"!**/fixtures/**",
5466
"!**/helpers/**",

packages/dsv/rollup.config.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

packages/dsv/rollup.config.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { readFileSync } from 'fs';
2+
3+
import { createConfig } from '../../shared/rollup.config.mjs';
4+
5+
export default {
6+
...createConfig({
7+
pkg: JSON.parse(readFileSync(new URL('./package.json', import.meta.url), 'utf8'))
8+
}),
9+
input: 'src/index.js',
10+
plugins: []
11+
};

pnpm-lock.yaml

Lines changed: 21 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)