Axel Rauschmayer on Nostr: Strange TypeScript bug(?) With the following tsconfig.json, TS copies package.json to ...
Strange TypeScript bug(?)
With the following tsconfig.json, TS copies package.json to dist/
{
"include": ["src/**/*", "test/**/*"],
"compilerOptions": {
"rootDir": ".",
"outDir": "dist",
"resolveJsonModule": true,
}
}
Published at
2025-06-04 01:04:42Event JSON
{
"id": "482d58a46ded50d909acc19332a7ee2fa9a6d3187eb29c0c94e8d76faf6cf23d",
"pubkey": "7a7a0978cc46ef7fd548fb125e51c04de7d4ca639417a21b56aa95e3711c0b38",
"created_at": 1748999082,
"kind": 1,
"tags": [
[
"proxy",
"https://fosstodon.org/@rauschma/114622403854819499",
"web"
],
[
"proxy",
"https://fosstodon.org/users/rauschma/statuses/114622403854819499",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://fosstodon.org/users/rauschma/statuses/114622403854819499",
"pink.momostr"
],
[
"-"
]
],
"content": "Strange TypeScript bug(?)\n\nWith the following tsconfig.json, TS copies package.json to dist/\n{\n\"include\": [\"src/**/*\", \"test/**/*\"],\n\"compilerOptions\": {\n \"rootDir\": \".\",\n \"outDir\": \"dist\",\n \"resolveJsonModule\": true,\n}\n}",
"sig": "7d9737f76ff2e8692f7e4380a626ebb55da407ab3e4fc4affc932e970b5d2fe2998b7b6e11b8ae30a57ff379a8c9a3b374b9de6383ff5eee34524bccb033f9d9"
}