react-hooks-global-states-debug 1.0.0-beta.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.
Files changed (3) hide show
  1. package/debug.js +62 -0
  2. package/index.d.ts +18 -0
  3. package/package.json +38 -0
package/index.d.ts ADDED
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Ambient type declaration for `react-hooks-global-states-debug`.
3
+ *
4
+ * This is a SIDE-EFFECT-ONLY package: importing it (`import 'react-hooks-global-states-debug';`)
5
+ * installs the DevTools monkey patch and exports nothing. The published bundle is dist/debug.js
6
+ * (see package.json `main`/`module`), and this file is copied to dist/index.d.ts by
7
+ * scripts/prepare-dist.ts to satisfy the package.json `types` field.
8
+ */
9
+
10
+ declare module 'react-hooks-global-states-debug' {
11
+ /**
12
+ * Side-effect import. Connects your global stores to the React Hooks Global States DevTools
13
+ * browser extension. Import once at your app entry point during development only; it must never
14
+ * be shipped in production builds.
15
+ */
16
+ const _default: void;
17
+ export default _default;
18
+ }
package/package.json ADDED
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "react-hooks-global-states-debug",
3
+ "version": "1.0.0-beta.0",
4
+ "description": "DevTools debug package for react-hooks-global-states (and react-global-state-hooks). Side-effect import that connects your global stores to the React Hooks Global States DevTools browser extension.",
5
+ "type": "module",
6
+ "main": "./debug.js",
7
+ "module": "./debug.js",
8
+ "types": "./index.d.ts",
9
+ "sideEffects": true,
10
+ "files": [
11
+ "debug.js",
12
+ "index.d.ts"
13
+ ],
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/johnny-quesada-developer/react-global-state-hooks.git"
17
+ },
18
+ "keywords": [
19
+ "react",
20
+ "hooks",
21
+ "global-state",
22
+ "global-states",
23
+ "react-hooks-global-states",
24
+ "react-global-state-hooks",
25
+ "devtools",
26
+ "debug",
27
+ "development"
28
+ ],
29
+ "author": "Johnny Quesada",
30
+ "license": "MIT",
31
+ "publishConfig": {
32
+ "access": "public"
33
+ },
34
+ "bugs": {
35
+ "url": "https://github.com/johnny-quesada-developer/react-global-state-hooks/issues"
36
+ },
37
+ "homepage": "https://github.com/johnny-quesada-developer/react-global-state-hooks#readme"
38
+ }