react-tooltip 5.26.4-beta.1148.rc.0 → 6.0.0-beta.1179.rc.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/.eslintrc.json CHANGED
@@ -90,6 +90,8 @@
90
90
  "@typescript-eslint/ban-ts-comment": "off",
91
91
  "dot-notation": "off",
92
92
  "no-shadow": "off",
93
- "@typescript-eslint/no-shadow": "error"
93
+ "@typescript-eslint/no-shadow": "error",
94
+ "react-hooks/rules-of-hooks": "error",
95
+ "react-hooks/exhaustive-deps": "warn"
94
96
  }
95
97
  }
package/beta-release.js CHANGED
@@ -1,13 +1,17 @@
1
- /* eslint-disable @typescript-eslint/no-var-requires */
2
- const util = require('util')
3
- const exec = util.promisify(require('child_process').exec)
4
- const package = require('./package.json')
1
+ import util from 'util'
2
+ import { exec as execCallback } from 'child_process'
3
+ import minimist from 'minimist'
4
+ import pkg from './package.json' assert { type: 'json' }
5
5
 
6
- const args = require('minimist')(process.argv.slice(2))
6
+ const exec = util.promisify(execCallback)
7
+
8
+ const args = minimist(process.argv.slice(2))
9
+
10
+ console.log({ args })
7
11
 
8
12
  const issueNumber = args['issue']
9
13
 
10
- console.log(issueNumber)
14
+ console.log({ issueNumber })
11
15
 
12
16
  const runCommand = async (command) => {
13
17
  return new Promise((resolve) => {
@@ -26,7 +30,7 @@ const AutoBetaRelease = async () => {
26
30
 
27
31
  // check if there is a beta release with the same issue number on published versions
28
32
  const arrayOfBetaReleases = JSON.parse(stdout).filter((version) =>
29
- version.includes(`${package.version}-beta.${issueNumber}`),
33
+ version.includes(`${pkg.version}-beta.${issueNumber}`),
30
34
  )
31
35
 
32
36
  let fullLastBetaRelease = null
@@ -56,9 +60,9 @@ const AutoBetaRelease = async () => {
56
60
  }
57
61
 
58
62
  // next beta release version. Output: 1.0.0-beta.1.rc.1
59
- const nextBetaReleaseVesionFull = `${package.version}-beta.${issueNumber}.rc.${nextBetaReleaseVersion}`
63
+ const nextBetaReleaseVesionFull = `${pkg.version}-beta.${issueNumber}.rc.${nextBetaReleaseVersion}`
60
64
 
61
- // update the beta version on package.json
65
+ // update the beta version on packageJson.json
62
66
  const { error } = await runCommand(
63
67
  `npm version ${nextBetaReleaseVesionFull} --no-git-tag-version`,
64
68
  )