Skip to content

Commit 5a2e4de

Browse files
committed
chore(legacy): update dependencies
1 parent 678125b commit 5a2e4de

File tree

4 files changed

+15
-22
lines changed

4 files changed

+15
-22
lines changed

packages/legacy/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ It's usually easy enough to convert these to modules. But why bother? You can ju
7676
```js
7777
// vendor/some-library.js
7878
var someLibrary = {
79-
square: function(n) {
79+
square: function (n) {
8080
return n * n;
8181
},
82-
cube: function(n) {
82+
cube: function (n) {
8383
return n * n * n;
8484
}
8585
};

packages/legacy/package.json

+9-6
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@
1111
"homepage": "https://github.com/rollup/plugins/tree/master/packages/legacy/#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",
2021
"lint": "pnpm run lint:js && pnpm run lint:docs && 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 --ext .js,.ts",
2324
"lint:package": "prettier --write package.json --plugin=prettier-plugin-package",
2425
"prebuild": "del-cli dist",
@@ -40,17 +41,19 @@
4041
"rollup": "^1.20.0||^2.0.0"
4142
},
4243
"devDependencies": {
43-
"@rollup/plugin-buble": "^0.20.0",
44-
"del-cli": "^3.0.0",
45-
"rollup": "^2.0.0"
44+
"@rollup/plugin-buble": "^0.21.3",
45+
"del-cli": "^3.0.1",
46+
"rollup": "^2.23.0"
4647
},
4748
"ava": {
49+
"babel": {
50+
"compileEnhancements": false
51+
},
4852
"files": [
4953
"!**/fixtures/**",
5054
"!**/helpers/**",
5155
"!**/recipes/**",
5256
"!**/types.ts"
5357
]
54-
},
55-
"module": "dist/index.es.js"
58+
}
5659
}

packages/legacy/rollup.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ import pkg from './package.json';
55
export default {
66
input: 'src/index.js',
77
plugins: [buble()],
8+
external: ['path'],
89
output: [
9-
{ file: pkg.main, format: 'cjs', sourcemap: true },
10+
{ file: pkg.main, format: 'cjs', sourcemap: true, exports: 'auto' },
1011
{ file: pkg.module, format: 'es', sourcemap: true }
1112
]
1213
};

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)