refactor: move experimental-warning-suppression from core to daemon
core package should remain platform-agnostic without direct process access.
The suppression module belongs in daemon where Node.js APIs are expected.
小橘 🍊(NEKO Team)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import "@uncaged/nerve-core/experimental-warning-suppression.js";
|
||||
import "@uncaged/nerve-daemon/experimental-warning-suppression.js";
|
||||
|
||||
import { defineCommand, runMain } from "citty";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import "@uncaged/nerve-core/experimental-warning-suppression.js";
|
||||
import "@uncaged/nerve-daemon/experimental-warning-suppression.js";
|
||||
|
||||
import { runForegroundKernelSession } from "./run-foreground-kernel.js";
|
||||
import { loadDaemonModule } from "./workspace-daemon.js";
|
||||
|
||||
@@ -7,10 +7,6 @@
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
},
|
||||
"./experimental-warning-suppression.js": {
|
||||
"types": "./dist/experimental-warning-suppression.d.ts",
|
||||
"default": "./dist/experimental-warning-suppression.js"
|
||||
}
|
||||
},
|
||||
"files": ["dist"],
|
||||
|
||||
@@ -10,7 +10,6 @@ export default defineConfig({
|
||||
source: {
|
||||
entry: {
|
||||
index: "src/index.ts",
|
||||
"experimental-warning-suppression": "src/experimental-warning-suppression.ts",
|
||||
},
|
||||
},
|
||||
output: {
|
||||
|
||||
@@ -4,6 +4,17 @@
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
},
|
||||
"./experimental-warning-suppression.js": {
|
||||
"types": "./dist/experimental-warning-suppression.d.ts",
|
||||
"default": "./dist/experimental-warning-suppression.js"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"files": ["dist"],
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
||||
@@ -12,6 +12,7 @@ export default defineConfig({
|
||||
index: "src/index.ts",
|
||||
"sense-worker": "src/sense-worker.ts",
|
||||
"workflow-worker": "src/workflow-worker.ts",
|
||||
"experimental-warning-suppression": "src/experimental-warning-suppression.ts",
|
||||
},
|
||||
},
|
||||
output: {
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* nerve.yaml ← config
|
||||
*/
|
||||
|
||||
import "@uncaged/nerve-core/experimental-warning-suppression.js";
|
||||
import "./experimental-warning-suppression.js";
|
||||
|
||||
import { readFileSync } from "node:fs";
|
||||
import { join, resolve } from "node:path";
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* workflows/<name>/index.ts (or .js) ← user workflow definition
|
||||
*/
|
||||
|
||||
import "@uncaged/nerve-core/experimental-warning-suppression.js";
|
||||
import "./experimental-warning-suppression.js";
|
||||
|
||||
import { existsSync } from "node:fs";
|
||||
import { join, resolve } from "node:path";
|
||||
|
||||
Reference in New Issue
Block a user