Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ packages/json/test/fixtures/garbage/*
packages/yaml/test/fixtures/**/*
**/dist/
**/fixtures/
**/snapshots/
pnpm-lock.yaml
2 changes: 1 addition & 1 deletion packages/inject/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

## Requirements

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

## Install

Expand Down
42 changes: 27 additions & 15 deletions packages/inject/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,16 @@
"author": "Rich Harris <richard.a.harris@gmail.com>",
"homepage": "https://github.com/rollup/plugins/tree/master/packages/inject#readme",
"bugs": "https://github.com/rollup/plugins/issues",
"main": "dist/index.js",
"module": "dist/index.es.js",
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"exports": {
"types": "./types/index.d.ts",
"import": "./dist/es/index.js",
"default": "./dist/cjs/index.js"
},
"engines": {
"node": ">=14.0.0"
},
"scripts": {
"build": "rollup -c",
"ci:coverage": "nyc pnpm test && nyc report --reporter=text-lcov > coverage.lcov",
Expand All @@ -27,11 +35,12 @@
"pretest": "pnpm build",
"release": "pnpm --workspace-root plugin:release --pkg $npm_package_name",
"test": "ava",
"test:ts": "tsc index.d.ts test/types.ts --noEmit"
"test:ts": "tsc types/index.d.ts test/types.ts --noEmit"
},
"files": [
"dist",
"index.d.ts",
"!dist/**/*.map",
"types",
"README.md",
"LICENSE"
],
Expand All @@ -44,25 +53,28 @@
"modules"
],
"peerDependencies": {
"rollup": "^1.20.0 || ^2.0.0"
"rollup": "^1.20.0||^2.0.0||^3.0.0"
},
"peerDependenciesMeta": {
"rollup": {
"optional": true
}
},
"dependencies": {
"@rollup/pluginutils": "^3.1.0",
"estree-walker": "^2.0.1",
"magic-string": "^0.25.7"
"@rollup/pluginutils": "^4.2.1",
"estree-walker": "^2.0.2",
"magic-string": "^0.26.4"
},
"devDependencies": {
"@rollup/plugin-buble": "^0.21.3",
"del-cli": "^3.0.1",
"del-cli": "^5.0.0",
"locate-character": "^2.0.5",
"rollup": "^2.67.3",
"source-map": "^0.7.3",
"typescript": "^3.9.7"
"rollup": "^3.0.0-7",
"source-map": "^0.7.4",
"typescript": "^4.8.3"
},
"types": "./types/index.d.ts",
"ava": {
"babel": {
"compileEnhancements": false
},
"files": [
"!**/fixtures/**",
"!**/helpers/**",
Expand Down
15 changes: 0 additions & 15 deletions packages/inject/rollup.config.js

This file was deleted.

13 changes: 13 additions & 0 deletions packages/inject/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { readFileSync } from 'fs';

import buble from '@rollup/plugin-buble';

import { createConfig } from '../../shared/rollup.config.mjs';

export default {
...createConfig({
pkg: JSON.parse(readFileSync(new URL('./package.json', import.meta.url), 'utf8'))
}),
input: 'src/index.js',
plugins: [buble()]
};
2 changes: 1 addition & 1 deletion packages/inject/test/snapshots/test.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Generated by [AVA](https://avajs.dev).
$inject_Buffer_isBuffer('foo');␊
`

## generates \* imports
## generates * imports

> Snapshot 1

Expand Down
Binary file modified packages/inject/test/snapshots/test.js.snap
Binary file not shown.
File renamed without changes.
26 changes: 13 additions & 13 deletions pnpm-lock.yaml

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