Skip to content

Commit b8fbbaf

Browse files
committed
remove types for package.json
breaks the build
1 parent 4e38008 commit b8fbbaf

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/BareServer.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type packageData from '../package.json';
21
import { Request, Response, writeResponse } from './AbstractMessage.js';
32
import type { BareHeaders } from './requestUtil.js';
43
import createHttpError from 'http-errors';
@@ -27,7 +26,7 @@ export class BareError extends Error {
2726

2827
const pkg = JSON.parse(
2928
readFileSync(join(__dirname, '..', 'package.json'), 'utf-8')
30-
) as typeof packageData;
29+
) as { version: string };
3130

3231
const project: BareProject = {
3332
name: 'bare-server-node',

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"esModuleInterop": true,
1111
"declaration": true,
1212
"sourceMap": true,
13-
"resolveJsonModule": true
13+
"resolveJsonModule": false
1414
},
1515
"include": ["src"]
1616
}

0 commit comments

Comments
 (0)