-
-
Notifications
You must be signed in to change notification settings - Fork 591
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
10 changed files
with
95 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,16 @@ | |
"author": "Rich Harris <[email protected]>", | ||
"homepage": "https://github.com/rollup/plugins/tree/master/packages/replace#readme", | ||
"bugs": "https://github.com/rollup/plugins/issues", | ||
"main": "dist/rollup-plugin-replace.cjs.js", | ||
"module": "dist/rollup-plugin-replace.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", | ||
|
@@ -31,6 +39,7 @@ | |
}, | ||
"files": [ | ||
"dist", | ||
"!dist/**/*.map", | ||
"src", | ||
"types", | ||
"README.md" | ||
|
@@ -44,21 +53,26 @@ | |
"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", | ||
"magic-string": "^0.25.7" | ||
"@rollup/pluginutils": "^4.2.1", | ||
"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", | ||
"types": "./types/index.d.ts", | ||
"ava": { | ||
"workerThreads": false, | ||
"files": [ | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters