Skip to content

Commit

Permalink
chore(json): update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Jul 31, 2020
1 parent c1a0b07 commit 678125b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 45 deletions.
16 changes: 10 additions & 6 deletions packages/json/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@
"homepage": "https://github.com/rollup/plugins/tree/master/packages/json#readme",
"bugs": "https://github.com/rollup/plugins/issues",
"main": "dist/index.js",
"module": "dist/index.es.js",
"scripts": {
"build": "rollup -c",
"ci:coverage": "nyc pnpm run test && nyc report --reporter=text-lcov > coverage.lcov",
"ci:lint": "pnpm run build && pnpm run lint",
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
"ci:test": "pnpm run test -- --verbose && pnpm run test:ts",
"lint": "pnpm run lint:js && pnpm run lint:docs && pnpm run lint:json && pnpm run lint:package",
"lint:docs": "prettier --single-quote --write README.md",
"lint:docs": "prettier --single-quote --arrow-parens avoid --write README.md",
"lint:js": "eslint --fix --cache src test types --ext .js,.ts",
"lint:json": "prettier --write \"test/fixtures/!(garbage)/*.json\"",
"lint:package": "prettier --write package.json --plugin=prettier-plugin-package",
Expand Down Expand Up @@ -51,17 +52,20 @@
},
"devDependencies": {
"@rollup/plugin-buble": "^0.21.0",
"@rollup/plugin-node-resolve": "^7.0.0",
"source-map-support": "^0.5.16"
"@rollup/plugin-node-resolve": "^8.4.0",
"rollup": "^2.23.0",
"source-map-support": "^0.5.19"
},
"types": "types/index.d.ts",
"ava": {
"babel": {
"compileEnhancements": false
},
"files": [
"!**/fixtures/**",
"!**/helpers/**",
"!**/recipes/**",
"!**/types.ts"
]
},
"module": "dist/index.es.js",
"types": "types/index.d.ts"
}
}
2 changes: 1 addition & 1 deletion packages/json/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const external = Object.keys(pkg.dependencies);
export default {
input: 'src/index.js',
output: [
{ file: pkg.main, format: 'cjs', sourcemap: true },
{ file: pkg.main, format: 'cjs', sourcemap: true, exports: 'auto' },
{ file: pkg.module, format: 'es', sourcemap: true }
],
plugins: [buble()],
Expand Down
4 changes: 2 additions & 2 deletions packages/json/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { readFileSync } = require('fs');
const test = require('ava');
const { rollup } = require('rollup');

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

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

Expand Down Expand Up @@ -57,7 +57,7 @@ test('generates named exports', async (t) => {
test('resolves extensionless imports in conjunction with the node-resolve plugin', async (t) => {
const bundle = await rollup({
input: 'fixtures/extensionless/main.js',
plugins: [resolve({ extensions: ['.js', '.json'] }), json()]
plugins: [nodeResolve({ extensions: ['.js', '.json'] }), json()]
});
t.plan(2);
return testBundle(t, bundle);
Expand Down
44 changes: 8 additions & 36 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 678125b

Please sign in to comment.