Fixup npm package README

Summary: Remove some outdated information and make sure that npmjs shows the builtin TypeScript typings (now that we no longer have clever resolution schemes).

Reviewed By: javache

Differential Revision: D54788636

fbshipit-source-id: 76e7663924189fd68ac62b27730f44213b13ad85
This commit is contained in:
Nick Gerleman
2024-03-12 16:35:42 -07:00
committed by Facebook GitHub Bot
parent d1c6b9af78
commit f4facf8990
2 changed files with 5 additions and 33 deletions

View File

@@ -59,6 +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');
await writeFile(packageJsonPath, JSON.stringify(packageJson, null, 2));
});