Skip to content

Commit

Permalink
chore(yaml): update dependencies
Browse files Browse the repository at this point in the history
BREAKING CHANGES: now requires at least Node 10
  • Loading branch information
lukastaegert committed Jul 30, 2020
1 parent 1827a2c commit efcf371
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 135 deletions.
29 changes: 16 additions & 13 deletions packages/yaml/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,20 @@
"homepage": "https://github.com/rollup/plugins/tree/master/packages/yaml/#readme",
"bugs": "https://github.com/rollup/plugins/issues",
"main": "dist/index.js",
"module": "dist/index.es.js",
"engines": {
"node": ">=10.0.0"
},
"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",
"lint": "pnpm run lint:js && pnpm run lint:docs && pnpm run lint:package",
"lint:docs": "prettier --single-quote --write README.md",
"lint:docs": "prettier --write README.md",
"lint:js": "eslint --fix --cache src test --ext .js,.ts",
"lint:package": "prettier --write package.json --plugin=prettier-plugin-package",
"lint:package": "prettier --write package.json",
"prebuild": "del-cli dist",
"prepare": "pnpm run build",
"prepublishOnly": "pnpm run lint",
Expand All @@ -41,26 +45,25 @@
"rollup": "^1.20.0 || ^2.0.0"
},
"dependencies": {
"@rollup/pluginutils": "^3.0.1",
"js-yaml": "^3.13.1",
"@rollup/pluginutils": "^3.1.0",
"js-yaml": "^3.14.0",
"tosource": "^1.0.0"
},
"devDependencies": {
"@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.0",
"@rollup/plugin-node-resolve": "^7.1.1",
"del-cli": "^3.0.0",
"rollup": "^2.0.0",
"rollup-plugin-babel": "^4.3.3",
"source-map-support": "^0.5.16"
"@rollup/plugin-node-resolve": "^8.4.0",
"del-cli": "^3.0.1",
"rollup": "^2.23.0",
"source-map-support": "^0.5.19"
},
"ava": {
"babel": {
"compileEnhancements": false
},
"files": [
"!**/fixtures/**",
"!**/helpers/**",
"!**/recipes/**",
"!**/types.ts"
]
},
"module": "dist/index.es.js"
}
}
18 changes: 1 addition & 17 deletions packages/yaml/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,10 @@
import babel from 'rollup-plugin-babel';

import pkg from './package.json';

export default {
input: 'src/index.js',
plugins: [
babel({
presets: [
[
'@babel/preset-env',
{
targets: {
node: 6
}
}
]
]
})
],
external: Object.keys(pkg.dependencies),
output: [
{ file: pkg.main, format: 'cjs', sourcemap: true },
{ file: pkg.main, format: 'cjs', sourcemap: true, exports: 'auto' },
{ file: pkg.module, format: 'es', sourcemap: true }
]
};
2 changes: 1 addition & 1 deletion packages/yaml/test/test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const test = require('ava');
const rollup = require('rollup');
const nodeResolve = require('@rollup/plugin-node-resolve');
const { nodeResolve } = require('@rollup/plugin-node-resolve');
const yamlParser = require('js-yaml');

const { testBundle } = require('../../../util/test');
Expand Down
111 changes: 7 additions & 104 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 efcf371

Please sign in to comment.