Skip to content

Commit 678125b

Browse files
committedJul 31, 2020
chore(json): update dependencies
1 parent c1a0b07 commit 678125b

File tree

4 files changed

+21
-45
lines changed

4 files changed

+21
-45
lines changed
 

‎packages/json/package.json

+10-6
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@
1111
"homepage": "https://github.com/rollup/plugins/tree/master/packages/json#readme",
1212
"bugs": "https://github.com/rollup/plugins/issues",
1313
"main": "dist/index.js",
14+
"module": "dist/index.es.js",
1415
"scripts": {
1516
"build": "rollup -c",
1617
"ci:coverage": "nyc pnpm run test && nyc report --reporter=text-lcov > coverage.lcov",
1718
"ci:lint": "pnpm run build && pnpm run lint",
1819
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
1920
"ci:test": "pnpm run test -- --verbose && pnpm run test:ts",
2021
"lint": "pnpm run lint:js && pnpm run lint:docs && pnpm run lint:json && pnpm run lint:package",
21-
"lint:docs": "prettier --single-quote --write README.md",
22+
"lint:docs": "prettier --single-quote --arrow-parens avoid --write README.md",
2223
"lint:js": "eslint --fix --cache src test types --ext .js,.ts",
2324
"lint:json": "prettier --write \"test/fixtures/!(garbage)/*.json\"",
2425
"lint:package": "prettier --write package.json --plugin=prettier-plugin-package",
@@ -51,17 +52,20 @@
5152
},
5253
"devDependencies": {
5354
"@rollup/plugin-buble": "^0.21.0",
54-
"@rollup/plugin-node-resolve": "^7.0.0",
55-
"source-map-support": "^0.5.16"
55+
"@rollup/plugin-node-resolve": "^8.4.0",
56+
"rollup": "^2.23.0",
57+
"source-map-support": "^0.5.19"
5658
},
59+
"types": "types/index.d.ts",
5760
"ava": {
61+
"babel": {
62+
"compileEnhancements": false
63+
},
5864
"files": [
5965
"!**/fixtures/**",
6066
"!**/helpers/**",
6167
"!**/recipes/**",
6268
"!**/types.ts"
6369
]
64-
},
65-
"module": "dist/index.es.js",
66-
"types": "types/index.d.ts"
70+
}
6771
}

‎packages/json/rollup.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const external = Object.keys(pkg.dependencies);
77
export default {
88
input: 'src/index.js',
99
output: [
10-
{ file: pkg.main, format: 'cjs', sourcemap: true },
10+
{ file: pkg.main, format: 'cjs', sourcemap: true, exports: 'auto' },
1111
{ file: pkg.module, format: 'es', sourcemap: true }
1212
],
1313
plugins: [buble()],

‎packages/json/test/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const { readFileSync } = require('fs');
33
const test = require('ava');
44
const { rollup } = require('rollup');
55

6-
const resolve = require('@rollup/plugin-node-resolve');
6+
const { nodeResolve } = require('@rollup/plugin-node-resolve');
77

88
const { testBundle } = require('../../../util/test');
99

@@ -57,7 +57,7 @@ test('generates named exports', async (t) => {
5757
test('resolves extensionless imports in conjunction with the node-resolve plugin', async (t) => {
5858
const bundle = await rollup({
5959
input: 'fixtures/extensionless/main.js',
60-
plugins: [resolve({ extensions: ['.js', '.json'] }), json()]
60+
plugins: [nodeResolve({ extensions: ['.js', '.json'] }), json()]
6161
});
6262
t.plan(2);
6363
return testBundle(t, bundle);

‎pnpm-lock.yaml

+8-36
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.