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 +3 -1
- package/beta-release.js +13 -9
- package/dist/react-tooltip.cjs +317 -467
- package/dist/react-tooltip.cjs.map +1 -1
- package/dist/react-tooltip.d.ts +5 -82
- package/dist/react-tooltip.min.cjs +3 -2
- package/dist/react-tooltip.min.cjs.map +1 -1
- package/dist/react-tooltip.min.mjs +3 -2
- package/dist/react-tooltip.min.mjs.map +1 -1
- package/dist/react-tooltip.mjs +317 -457
- package/dist/react-tooltip.mjs.map +1 -1
- package/dist/react-tooltip.umd.js +320 -470
- package/dist/react-tooltip.umd.js.map +1 -1
- package/dist/react-tooltip.umd.min.js +3 -2
- package/dist/react-tooltip.umd.min.js.map +1 -1
- package/package.json +48 -47
- package/rollup.config.dev.mjs +88 -0
- package/rollup.config.prod.mjs +126 -0
- package/rollup.config.types.mjs +21 -0
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
|
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(`${
|
|
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 = `${
|
|
63
|
+
const nextBetaReleaseVesionFull = `${pkg.version}-beta.${issueNumber}.rc.${nextBetaReleaseVersion}`
|
|
60
64
|
|
|
61
|
-
// update the beta version on
|
|
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
|
)
|