Skip to content

Commit

Permalink
chore: update replace/package.json. prepare for publish
Browse files Browse the repository at this point in the history
  • Loading branch information
shellscape committed Oct 28, 2019
1 parent 3999dc2 commit 0d57273
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
3 changes: 3 additions & 0 deletions packages/replace/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,21 @@ Typically, `@rollup/plugin-replace` should be placed in `plugins` _before_ other
In addition to the properties and values specified for replacement, users may also specify the options below.

### `delimiters`

Type: `Array[String, String]`
Default: `['\b', '\b']`

Specifies the boundaries around which strings will be replaced. By default, delimiters are [word boundaries](https://www.regular-expressions.info/wordboundaries.html). See [Word Boundaries](#word-boundaries) below for more information.

### `exclude`

Type: `String` | `Array[...String]`
Default: `null`

A [minimatch pattern](https://github.com/isaacs/minimatch), or array of patterns, which specifies the files in the build the plugin should _ignore_. By default no files are ignored.

### `include`

Type: `String` | `Array(String)`
Default: `null`

Expand Down
17 changes: 14 additions & 3 deletions packages/replace/package.json
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"name": "@rollup/plugin-replace",
"version": "2.2.0",
"publishConfig": {
"access": "public"
},
"license": "MIT",
"repository": "rollup/plugins",
"author": "Rich Harris <[email protected]>",
Expand All @@ -15,15 +18,15 @@
"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:package",
"lint:docs": "prettier --write README.md",
"lint:docs": "prettier --single-quote --write README.md",
"lint:js": "eslint --fix --cache src test",
"lint:package": "prettier --write package.json --plugin=prettier-plugin-package",
"prebuild": "del-cli dist",
"prepare": "npm run build",
"prepublishOnly": "npm run lint && npm run test:only",
"prepublishOnly": "npm run lint && npm run test",
"pretest": "npm run build",
"security": "echo 'pnpm needs `npm audit` support'",
"test": "ava test/misc.js",
"test": "ava",
"test:ts": "tsc index.d.ts test/types.ts --noEmit"
},
"files": [
Expand Down Expand Up @@ -55,5 +58,13 @@
"rollup-plugin-buble": "^0.19.6",
"source-map": "^0.7.3"
},
"ava": {
"files": [
"!**/fixtures/**",
"!**/helpers/**",
"!**/recipes/**",
"!**/types.ts"
]
},
"module": "dist/rollup-plugin-replace.es.js"
}

0 comments on commit 0d57273

Please sign in to comment.