@zukhruf/mutex 0.3.11 → 0.3.13
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 +3 -2
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -159,12 +159,13 @@ This package is part of the [zukhruf](../../README.md) workspace. Run the comman
|
|
|
159
159
|
|
|
160
160
|
```sh
|
|
161
161
|
npm install
|
|
162
|
-
npx nx run mutex:test # builds, then runs
|
|
162
|
+
npx nx run mutex:test # builds, then runs the tests in src/
|
|
163
|
+
npx nx run mutex:test-latest-release # checks src/ against the latest release on npm
|
|
163
164
|
npx nx run mutex:typecheck # formats, lints, then type checks
|
|
164
165
|
npx nx run mutex:build # compiles src/ to dist/
|
|
165
166
|
```
|
|
166
167
|
|
|
167
|
-
The tests run from `src/`, not from `dist/`: they start workers and child processes from `.ts` files.
|
|
168
|
+
The tests run from `src/`, not from `dist/`: they start workers and child processes from `.ts` files. A `*.release.test.ts` file checks this source against the latest release, which it downloads from npm. Its result can change when a new version is released, with no change here, so it has its own target, which nx never caches, and CI runs it.
|
|
168
169
|
|
|
169
170
|
```
|
|
170
171
|
src/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zukhruf/mutex",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.13",
|
|
4
4
|
"description": "A mutex with interchangeable lock stores, from one object to every process on a host, with fencing tokens on every lease.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -24,11 +24,13 @@
|
|
|
24
24
|
"exports": {
|
|
25
25
|
"./package.json": "./package.json",
|
|
26
26
|
".": {
|
|
27
|
+
"@zukhruf/source": "./src/index.ts",
|
|
27
28
|
"types": "./dist/index.d.ts",
|
|
28
29
|
"import": "./dist/index.js",
|
|
29
30
|
"default": "./dist/index.js"
|
|
30
31
|
},
|
|
31
32
|
"./leader-election": {
|
|
33
|
+
"@zukhruf/source": "./src/leader-election/index.ts",
|
|
32
34
|
"types": "./dist/leader-election/index.d.ts",
|
|
33
35
|
"import": "./dist/leader-election/index.js",
|
|
34
36
|
"default": "./dist/leader-election/index.js"
|