diff --git a/package.json b/package.json index 1e10c792..a6c6bbb2 100644 --- a/package.json +++ b/package.json @@ -25,14 +25,14 @@ "license": "BSD-2-Clause", "scripts": { "prepare": "npm run prepare:typescript", - "prepare:typescript": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types -t esnext -m esnext --module nodenext --moduleResolution nodenext --rootDir src ./src**/*.mjs", + "prepare:typescript": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types --resolveJsonModule -t esnext -m esnext --module nodenext --moduleResolution nodenext --rootDir src ./src**/*.mjs", "test": "npm run test:ava", "test:ava": "ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs", "cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp", "docs": "documentation readme --section=API ./src/**/*.mjs", "lint": "npm run lint:docs && npm run lint:typescript", "lint:docs": "documentation lint ./src/**/*.mjs", - "lint:typescript": "tsc --allowJs --checkJs --noEmit -t esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs" + "lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule -t esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs" }, "dependencies": { "content-entry": "^9.0.2",