Move the 6 duplicated logging modules (component, log, log-transport, log-transport-console, log-transport-file, log-file) from both gadget-code (Dtp* prefix) and gadget-drone (Gadget* prefix) into @shad/api, using gadget-drone's GadgetLog as the canonical version. GadgetLog now uses static configuration (consoleEnabled, defaultFile) set by each consumer's env.ts at module scope, removing the env dependency from the shared library. The addDefaultTransport/ removeDefaultTransport/getDefaultTransports static methods are preserved for future real-time log transport injection.
32 lines
702 B
JSON
32 lines
702 B
JSON
{
|
|
"name": "@gadget/api",
|
|
"version": "1.0.0",
|
|
"description": "Gadget Code API shared interfaces",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"dev": "tsc --watch"
|
|
},
|
|
"keywords": ["gadget", "api", "interfaces"],
|
|
"author": "Rob Colbert",
|
|
"license": "Apache-2.0",
|
|
"dependencies": {
|
|
"ansicolor": "^2.0.3",
|
|
"dayjs": "^1.11.20",
|
|
"mongoose": "^8.16.1",
|
|
"numeral": "^2.0.6"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^25.6.0",
|
|
"@types/numeral": "^2.0.5",
|
|
"typescript": "^6.0.3"
|
|
}
|
|
} |