Skip to content

Commit

Permalink
typings -> types
Browse files Browse the repository at this point in the history
  • Loading branch information
NickGerleman committed Mar 13, 2024
1 parent 1745019 commit 95cf065
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/just.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ task('prepack-package-json', async () => {
const packageJson = JSON.parse(packageJsonContents.toString('utf-8'));

recursiveReplace(packageJson, /(.\/src\/.*)\.ts/, '$1.js');
packageJson.typings = packageJson.main.replace(/(.\/src\/.*)\.js/, '$1.d.ts');
packageJson.types = packageJson.main.replace(/(.\/src\/.*)\.js/, '$1.d.ts');
await writeFile(packageJsonPath, JSON.stringify(packageJson, null, 2));
});

Expand Down

0 comments on commit 95cf065

Please sign in to comment.