@knitli/tsconfig 0.2.0 → 0.2.1
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/build.ts +14 -1
- package/dist/astro-tsconfig-p0jztgja.json +11 -0
- package/dist/build-tsconfig-2gh5brg9.json +4 -0
- package/dist/bunbuild-tsconfig-jexftr60.json +13 -0
- package/dist/cloudflare-tsconfig-y8mjrmyg.json +17 -0
- package/dist/index.js +30 -16
- package/dist/node-tsconfig-229ypnf1.json +8 -0
- package/dist/react-tsconfig-q4yfzyz9.json +12 -0
- package/dist/workspace-tsconfig-yktnvhn0.json +30 -0
- package/package.json +2 -2
package/build.ts
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
|
+
import { readFileSync } from "node:fs";
|
|
1
2
|
import Bun from "bun";
|
|
2
3
|
|
|
4
|
+
/** Read package.json and return non-workspace deps as external list */
|
|
5
|
+
function getExternalDeps(): string[] {
|
|
6
|
+
const pkg = JSON.parse(readFileSync("./package.json", "utf-8"));
|
|
7
|
+
const allDeps: Record<string, string> = {
|
|
8
|
+
...pkg.dependencies,
|
|
9
|
+
...pkg.peerDependencies,
|
|
10
|
+
};
|
|
11
|
+
return Object.entries(allDeps)
|
|
12
|
+
.filter(([, version]) => !version.startsWith("workspace:"))
|
|
13
|
+
.map(([name]) => name);
|
|
14
|
+
}
|
|
15
|
+
|
|
3
16
|
await Bun.build({
|
|
4
17
|
entrypoints: ["./src/index.ts"],
|
|
5
18
|
outdir: "./dist",
|
|
@@ -12,6 +25,6 @@ await Bun.build({
|
|
|
12
25
|
compile: false,
|
|
13
26
|
format: "esm",
|
|
14
27
|
target: "node",
|
|
15
|
-
|
|
28
|
+
external: getExternalDeps(),
|
|
16
29
|
sourcemap: "inline",
|
|
17
30
|
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"allowImportingTsExtensions": true,
|
|
5
|
+
"allowJs": true,
|
|
6
|
+
"checkJs": true,
|
|
7
|
+
"lib": ["ESNext", "DOM"]
|
|
8
|
+
},
|
|
9
|
+
"extends": ["./workspace-tsconfig.json"],
|
|
10
|
+
"include": ["${configDir}/.astro/types.d.ts"]
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://www.schemastore.org/tsconfig",
|
|
3
|
+
"extends": "./build-tsconfig.json",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"outDir": "./dist",
|
|
6
|
+
"declaration": true,
|
|
7
|
+
"declarationDir": "./dist",
|
|
8
|
+
"sourceMap": true,
|
|
9
|
+
"composite": true,
|
|
10
|
+
"tsBuildInfoFile": "./dist/build.tsbuildinfo"
|
|
11
|
+
},
|
|
12
|
+
"include": ["./src/**/*", "@types/bun"]
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"incremental": true,
|
|
5
|
+
"allowUmdGlobalAccess": true,
|
|
6
|
+
"importsNotUsedAsValues": "remove",
|
|
7
|
+
"allowJs": true,
|
|
8
|
+
"checkJs": true,
|
|
9
|
+
"rootDir": "${configDir}/src"
|
|
10
|
+
},
|
|
11
|
+
"extends": ["./workspace-tsconfig.json"],
|
|
12
|
+
"include": [
|
|
13
|
+
"${configDir}/worker-configuration.d.ts",
|
|
14
|
+
"@cloudflare/workers-types",
|
|
15
|
+
"${configDir}/src/**/*"
|
|
16
|
+
]
|
|
17
|
+
}
|
package/dist/index.js
CHANGED
|
@@ -1,23 +1,37 @@
|
|
|
1
|
+
// src/astro-tsconfig.json
|
|
2
|
+
var astro_tsconfig_default = "./astro-tsconfig-p0jztgja.json";
|
|
3
|
+
|
|
4
|
+
// src/build-tsconfig.json
|
|
5
|
+
var build_tsconfig_default = "./build-tsconfig-2gh5brg9.json";
|
|
6
|
+
|
|
7
|
+
// src/bunbuild-tsconfig.json
|
|
8
|
+
var bunbuild_tsconfig_default = "./bunbuild-tsconfig-jexftr60.json";
|
|
9
|
+
|
|
10
|
+
// src/cloudflare-tsconfig.json
|
|
11
|
+
var cloudflare_tsconfig_default = "./cloudflare-tsconfig-y8mjrmyg.json";
|
|
12
|
+
|
|
13
|
+
// src/node-tsconfig.json
|
|
14
|
+
var node_tsconfig_default = "./node-tsconfig-229ypnf1.json";
|
|
15
|
+
|
|
16
|
+
// src/react-tsconfig.json
|
|
17
|
+
var react_tsconfig_default = "./react-tsconfig-q4yfzyz9.json";
|
|
18
|
+
|
|
19
|
+
// src/workspace-tsconfig.json
|
|
20
|
+
var workspace_tsconfig_default = "./workspace-tsconfig-yktnvhn0.json";
|
|
21
|
+
|
|
1
22
|
// src/index.ts
|
|
2
|
-
import astroTsConfig from "#tsconfig/astro-tsconfig.json";
|
|
3
|
-
import buildTsConfig from "#tsconfig/build-tsconfig.json";
|
|
4
|
-
import bunBuildTsConfig from "#tsconfig/bunbuild-tsconfig.json";
|
|
5
|
-
import cloudflareTsConfig from "#tsconfig/cloudflare-tsconfig.json";
|
|
6
|
-
import nodeTsConfig from "#tsconfig/node-tsconfig.json";
|
|
7
|
-
import reactTsConfig from "#tsconfig/react-tsconfig.json";
|
|
8
|
-
import workspaceTsConfig from "#tsconfig/workspace-tsconfig.json";
|
|
9
23
|
var src_default = {
|
|
10
|
-
astroTsConfig,
|
|
11
|
-
workspaceTsConfig,
|
|
12
|
-
buildTsConfig,
|
|
13
|
-
bunBuildTsConfig,
|
|
14
|
-
cloudflareTsConfig,
|
|
15
|
-
nodeTsConfig,
|
|
16
|
-
reactTsConfig
|
|
24
|
+
astroTsConfig: astro_tsconfig_default,
|
|
25
|
+
workspaceTsConfig: workspace_tsconfig_default,
|
|
26
|
+
buildTsConfig: build_tsconfig_default,
|
|
27
|
+
bunBuildTsConfig: bunbuild_tsconfig_default,
|
|
28
|
+
cloudflareTsConfig: cloudflare_tsconfig_default,
|
|
29
|
+
nodeTsConfig: node_tsconfig_default,
|
|
30
|
+
reactTsConfig: react_tsconfig_default
|
|
17
31
|
};
|
|
18
32
|
export {
|
|
19
33
|
src_default as default
|
|
20
34
|
};
|
|
21
35
|
|
|
22
|
-
//# debugId=
|
|
23
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
36
|
+
//# debugId=244ECE6AFAC8E9DA64756E2164756E21
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vc3JjL2luZGV4LnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWwogICAgImltcG9ydCBhc3Ryb1RzQ29uZmlnIGZyb20gXCIjdHNjb25maWcvYXN0cm8tdHNjb25maWcuanNvblwiO1xuaW1wb3J0IGJ1aWxkVHNDb25maWcgZnJvbSBcIiN0c2NvbmZpZy9idWlsZC10c2NvbmZpZy5qc29uXCI7XG5pbXBvcnQgYnVuQnVpbGRUc0NvbmZpZyBmcm9tIFwiI3RzY29uZmlnL2J1bmJ1aWxkLXRzY29uZmlnLmpzb25cIjtcbmltcG9ydCBjbG91ZGZsYXJlVHNDb25maWcgZnJvbSBcIiN0c2NvbmZpZy9jbG91ZGZsYXJlLXRzY29uZmlnLmpzb25cIjtcbmltcG9ydCBub2RlVHNDb25maWcgZnJvbSBcIiN0c2NvbmZpZy9ub2RlLXRzY29uZmlnLmpzb25cIjtcbmltcG9ydCByZWFjdFRzQ29uZmlnIGZyb20gXCIjdHNjb25maWcvcmVhY3QtdHNjb25maWcuanNvblwiO1xuaW1wb3J0IHdvcmtzcGFjZVRzQ29uZmlnIGZyb20gXCIjdHNjb25maWcvd29ya3NwYWNlLXRzY29uZmlnLmpzb25cIjtcblxuZXhwb3J0IHR5cGUgQXN0cm9Uc0NvbmZpZ0pzb24gPSB0eXBlb2YgYXN0cm9Uc0NvbmZpZztcbmV4cG9ydCB0eXBlI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
|
|
5
|
+
"allowImportingTsExtensions": true,
|
|
6
|
+
"allowJs": true,
|
|
7
|
+
"checkJs": true,
|
|
8
|
+
"extends": "./workspace-tsconfig.json",
|
|
9
|
+
"include": ["@types/react", "@types/react-dom"],
|
|
10
|
+
"lib": ["ESNext", "DOM"]
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"allowSyntheticDefaultImports": true,
|
|
5
|
+
"declaration": false,
|
|
6
|
+
"declarationMap": false,
|
|
7
|
+
"esModuleInterop": true,
|
|
8
|
+
"forceConsistentCasingInFileNames": true,
|
|
9
|
+
"isolatedModules": true,
|
|
10
|
+
"jsx": "preserve",
|
|
11
|
+
"lib": ["ESNext"],
|
|
12
|
+
"module": "esnext",
|
|
13
|
+
"moduleDetection": "force",
|
|
14
|
+
"moduleResolution": "bundler",
|
|
15
|
+
"newLine": "lf",
|
|
16
|
+
"noEmit": true,
|
|
17
|
+
"noUncheckedIndexedAccess": true,
|
|
18
|
+
"resolveJsonModule": true,
|
|
19
|
+
"resolvePackageJsonExports": true,
|
|
20
|
+
"resolvePackageJsonImports": true,
|
|
21
|
+
"rootDir": ".",
|
|
22
|
+
"skipLibCheck": true,
|
|
23
|
+
"sourceMap": false,
|
|
24
|
+
"strict": true,
|
|
25
|
+
"target": "esnext",
|
|
26
|
+
"verbatimModuleSyntax": true
|
|
27
|
+
},
|
|
28
|
+
"exclude": ["${configDir}/dist"],
|
|
29
|
+
"include": ["@knitli/shared-file-types", "${configDir}/src/**/*"]
|
|
30
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knitli/tsconfig",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"license": "MIT OR Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"imports": {
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@cloudflare/workers-types": "^4.20260317.1",
|
|
57
|
-
"@knitli/shared-file-types": "0.1.0",
|
|
58
57
|
"@types/node": "^24.0.2",
|
|
59
58
|
"@types/react": "^19.2.14",
|
|
60
59
|
"@types/react-dom": "^19.2.3"
|
|
61
60
|
},
|
|
62
61
|
"devDependencies": {
|
|
62
|
+
"@knitli/shared-file-types": "0.1.0",
|
|
63
63
|
"astro": "^6.0.4",
|
|
64
64
|
"typescript": "^5.9.3"
|
|
65
65
|
},
|