@react-native/eslint-plugin-specs 0.0.4 → 0.71.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native/eslint-plugin-specs",
3
- "version": "0.0.4",
3
+ "version": "0.71.0",
4
4
  "description": "ESLint rules to validate NativeModule and Component Specs",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -9,7 +9,7 @@
9
9
  "directory": "packages/eslint-plugin-specs"
10
10
  },
11
11
  "scripts": {
12
- "prepublish": "node prepublish.js"
12
+ "prepack": "node prepack.js"
13
13
  },
14
14
  "dependencies": {
15
15
  "@babel/core": "^7.14.0",
File without changes
@@ -13,8 +13,8 @@
13
13
  const path = require('path');
14
14
  const withBabelRegister = require('./with-babel-register');
15
15
 
16
- // We run yarn prepublish before publishing package which will set this value to true
17
- const PACKAGE_USAGE = false;
16
+ // We use the prepack hook before publishing package to set this value to true
17
+ const PACKAGE_USAGE = true;
18
18
  const ERRORS = {
19
19
  misnamedHasteModule(hasteModuleName) {
20
20
  return `Module ${hasteModuleName}: All files using TurboModuleRegistry must start with Native.`;