瀏覽代碼

chore(tooling): Switch from `prepublish` to `prepare` (#649)

As described in the [NPM documentation](https://docs.npmjs.com/misc/scripts#prepublish-and-prepare), the `prepublish` script is deprecated for this use-case. Instead, `prepare` should be used for essential build tasks.

In practice, this makes it possible to depend on `react-native-webview` via git. If I contribute a new feature, I can use the feature right away by depending on its git branch, without waiting for upstream to publish, or even approve my pull request. This is great for experimentation.
William Swanson 5 年之前
父節點
當前提交
167431941b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      package.json

+ 1
- 1
package.json 查看文件

15
     "ci:publish": "yarn semantic-release",
15
     "ci:publish": "yarn semantic-release",
16
     "lint": "yarn tsc --noEmit && yarn eslint ./src --ext .ts,.tsx",
16
     "lint": "yarn tsc --noEmit && yarn eslint ./src --ext .ts,.tsx",
17
     "build": "yarn tsc",
17
     "build": "yarn tsc",
18
-    "prepack": "yarn build",
18
+    "prepare": "yarn build",
19
     "test": "yarn jest"
19
     "test": "yarn jest"
20
   },
20
   },
21
   "peerDependencies": {
21
   "peerDependencies": {