oasis_test 0.1.18 → 0.1.19

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 (2) hide show
  1. package/dist/index.js +5 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -51154,6 +51154,11 @@ void (async () => {
51154
51154
  console.error("[oasis] no config \u2014 run `oasis start` first");
51155
51155
  process.exit(1);
51156
51156
  }
51157
+ const alivePid = readPid();
51158
+ if (alivePid && alivePid !== process.pid && isRunning(alivePid)) {
51159
+ console.error(`[oasis] daemon already running (PID ${alivePid}) \u2014 exiting duplicate`);
51160
+ process.exit(0);
51161
+ }
51157
51162
  fs16.writeFileSync(PID_FILE, String(process.pid));
51158
51163
  const cleanup = () => {
51159
51164
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis_test",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "Oasis node daemon + CLI — background daemon, auto-start, full server CLI",
5
5
  "bin": {
6
6
  "oasis": "./dist/index.js"