gadget/packages/api/package.json
Rob Colbert 42a47dbcb7 refactor: unify logging into @gadget/api as GadgetLog
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.
2026-05-08 16:03:28 -04:00

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"
}
}