@linebundle-sdk/ts 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +26 -0
- package/FUNCTIONS.md +89 -0
- package/README.md +55 -0
- package/RUNTIMES.md +48 -0
- package/USAGE.md +20 -0
- package/esm/index.d.ts +8604 -0
- package/esm/index.js +5108 -0
- package/esm/index.js.map +1 -0
- package/package.json +36 -0
- package/tsup.config.ts +14 -0
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@linebundle-sdk/ts",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"author": "LineBundle",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./esm/index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"source": "./src/index.ts",
|
|
10
|
+
"types": "./esm/index.d.ts",
|
|
11
|
+
"default": "./esm/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./package.json": "./package.json"
|
|
14
|
+
},
|
|
15
|
+
"sideEffects": false,
|
|
16
|
+
"scripts": {
|
|
17
|
+
"lint": "eslint --cache --max-warnings=0 src",
|
|
18
|
+
"build": "tsup",
|
|
19
|
+
"prepublishOnly": "npm run build"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@eslint/js": "^9.19.0",
|
|
23
|
+
"eslint": "^9.19.0",
|
|
24
|
+
"globals": "^15.14.0",
|
|
25
|
+
"tsup": "^8.5.0",
|
|
26
|
+
"typescript": "~5.8.3",
|
|
27
|
+
"typescript-eslint": "^8.26.0"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"zod": "^3 || ^4"
|
|
31
|
+
},
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public",
|
|
34
|
+
"registry": "https://registry.npmjs.org/"
|
|
35
|
+
}
|
|
36
|
+
}
|
package/tsup.config.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { defineConfig } from 'tsup';
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
entry: { index: 'src/index.ts' },
|
|
5
|
+
format: ['esm'],
|
|
6
|
+
// zod is used by the generated validation layer. Keep it external so the
|
|
7
|
+
// consumer's own zod installation is used — avoids bundling it twice.
|
|
8
|
+
external: ['zod'],
|
|
9
|
+
dts: true,
|
|
10
|
+
outDir: 'esm',
|
|
11
|
+
clean: true,
|
|
12
|
+
sourcemap: true,
|
|
13
|
+
target: 'es2020',
|
|
14
|
+
});
|