Switch from open-source to a NapCat-style source-available, NON-commercial license so the free software cannot be resold / paid-deployed — which an OSI license (AGPL included) cannot prevent. Source stays public for study and non-commercial self-hosting; commercial use and public release of modifications require written permission; the native addon (snowluma-*.node) is carved out as proprietary. Explicitly NOT OSI open source. - LICENSE: SnowLuma Source-Available Non-Commercial License v1.0 (bilingual) - all 14 package.json: "license": "SEE LICENSE IN LICENSE" - README license section; CONTRIBUTING contribution-licensing note + a grant letting the project relicense contributions under commercial terms (contributors keep copyright)
58 lines
1.8 KiB
JSON
58 lines
1.8 KiB
JSON
{
|
|
"license": "SEE LICENSE IN LICENSE",
|
|
"name": "@snowluma/common",
|
|
"version": "1.9.13",
|
|
"private": true,
|
|
"type": "module",
|
|
"description": "SnowLuma shared infrastructure — leaf-package utilities with zero business dependencies. Logger / hex codec / log file transport / log line summariser / packet sender wire-protocol types / runtime config loader. Consumed by @snowluma/protocol, @snowluma/core, and @snowluma/onebot. Per-file subpath exports keep import sites unambiguous and let the bundler tree-shake aggressively (importing `@snowluma/common/hex` doesn't pull in `node:fs` from the logger transport).",
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./src/index.ts",
|
|
"default": "./src/index.ts"
|
|
},
|
|
"./logger": {
|
|
"types": "./src/logger.ts",
|
|
"default": "./src/logger.ts"
|
|
},
|
|
"./hex": {
|
|
"types": "./src/hex.ts",
|
|
"default": "./src/hex.ts"
|
|
},
|
|
"./json": {
|
|
"types": "./src/json.ts",
|
|
"default": "./src/json.ts"
|
|
},
|
|
"./log-file-transport": {
|
|
"types": "./src/log-file-transport.ts",
|
|
"default": "./src/log-file-transport.ts"
|
|
},
|
|
"./log-summary": {
|
|
"types": "./src/log-summary.ts",
|
|
"default": "./src/log-summary.ts"
|
|
},
|
|
"./packet-sender": {
|
|
"types": "./src/packet-sender.ts",
|
|
"default": "./src/packet-sender.ts"
|
|
},
|
|
"./protocol-types": {
|
|
"types": "./src/protocol-types.ts",
|
|
"default": "./src/protocol-types.ts"
|
|
},
|
|
"./runtime": {
|
|
"types": "./src/runtime.ts",
|
|
"default": "./src/runtime.ts"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^24.12.2",
|
|
"typescript": "catalog:",
|
|
"vitest": "^4.1.4"
|
|
}
|
|
}
|