@dracor/react 1.2.0 → 1.2.1
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/README.md +20 -0
- package/dist/index.es.js +342 -520
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +3 -8
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,6 +29,26 @@ DraCor components are using:
|
|
|
29
29
|
@source '../node_modules/@dracor/react';
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
+
## Local testing
|
|
33
|
+
|
|
34
|
+
To test a local build in a consuming project before publishing, use `pnpm pack`:
|
|
35
|
+
|
|
36
|
+
```sh
|
|
37
|
+
# In this repo
|
|
38
|
+
pnpm build
|
|
39
|
+
pnpm pack
|
|
40
|
+
# creates dracor-react-<version>.tgz
|
|
41
|
+
|
|
42
|
+
# In the consuming project
|
|
43
|
+
pnpm add /path/to/dracor-react/dracor-react-<version>.tgz
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
To restore the published version afterwards:
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
pnpm add @dracor/react@<version>
|
|
50
|
+
```
|
|
51
|
+
|
|
32
52
|
## Publication
|
|
33
53
|
|
|
34
54
|
To release a new version to npmjs.com you need to be a member of the
|