Skip to content

Commit

Permalink
chore(scripts): add tsc --allowJs --declaration --emitDeclarationOnly…
Browse files Browse the repository at this point in the history
… --declarationDir types --resolveJsonModule -t esnext -m esnext --module nodenext --moduleResolution nodenext --rootDir src ./src**/*.mjs (scripts.prepare:typescript)

chore(scripts): add tsc --allowJs --checkJs --noEmit --resolveJsonModule -t esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs (scripts.lint:typescript)
  • Loading branch information
arlac77 committed Mar 7, 2024
1 parent 5588188 commit 9c60787
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -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",
Expand Down

0 comments on commit 9c60787

Please sign in to comment.