Skip to content

Commit 9752914

Browse files
committed
feat: license
1 parent f1eb716 commit 9752914

File tree

5 files changed

+36
-13
lines changed

5 files changed

+36
-13
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2025 Owners of GitHub organization "vrchatapi" and individual contributors.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@
3838
"debug": "^4.4.1",
3939
"isomorphic-ws": "^5.0.0",
4040
"keyv": "^5.3.4",
41+
"@hey-api/client-fetch": "^0.13.0",
4142
"totp-generator": "^1.0.0",
4243
"ws": "^8.18.3"
4344
},
4445
"devDependencies": {
4546
"@ariesclark/eslint-config": "^3.1.1",
46-
"@hey-api/client-fetch": "^0.13.0",
4747
"@hey-api/openapi-ts": "^0.72.1",
4848
"@types/debug": "^4.1.12",
4949
"@types/node": "^24.0.3",

pnpm-lock.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
],
5050
/* Type Checking */
5151
"strict": true, /* Enable all strict type-checking options. */
52-
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
52+
"noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
5353
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
5454
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
5555
// "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */

tsup.config.mjs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
import { readFile } from "node:fs/promises";
2+
13
import { defineConfig } from "tsup";
24

35
import { version as VERSION } from "./package.json";
46

5-
const NODE_ENV = VERSION === "0.0.0-next.0" ? "development" : "production";
6-
77
export default defineConfig({
8+
banner: {
9+
js: `\n\n/**\n${(await readFile("./LICENSE", "utf-8")).split("\n").map((line) => ` * ${line}`).join("\n")}\n*/\n`,
10+
},
811
entry: ["src/index.ts"],
912
format: [
1013
"esm",
@@ -13,15 +16,14 @@ export default defineConfig({
1316
dts: true,
1417
sourcemap: true,
1518
minify: true,
19+
replaceNodeEnv: true,
1620
clean: true,
1721
treeshake: true,
18-
splitting: true,
19-
bundle: true,
20-
noExternal: ["@hey-api/client-fetch"],
21-
skipNodeModulesBundle: true,
22+
// bundle: true,
23+
// noExternal: ["@hey-api/client-fetch"],
24+
// skipNodeModulesBundle: true,
2225
outDir: "dist",
2326
env: {
24-
VERSION,
25-
NODE_ENV
27+
VERSION
2628
}
2729
});

0 commit comments

Comments
 (0)