-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace CJS-only build with ESM and CJS w/o NODE_ENV (#66)
* Remove last remaining NODE_ENV switch * Replace build outputs with .es.js + .js NOTE: This can't safely use package.json:exports since react isn't an ESM build and this would lead to issues as per the standard ESM module resolution which must start only resolving .mjs by default once it hits an ESM package. * Add script to move typings to dist output * Update copy-typings.js
- Loading branch information
Showing
8 changed files
with
202 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env node | ||
|
||
const path = require('path') | ||
const fs = require('fs') | ||
|
||
fs.copyFileSync( | ||
path.resolve(__dirname, 'react-ssr-prepass.d.ts'), | ||
path.resolve(__dirname, '../dist/react-ssr-prepass.d.ts') | ||
) | ||
|
||
fs.copyFileSync( | ||
path.resolve(__dirname, 'react-ssr-prepass.js.flow'), | ||
path.resolve(__dirname, '../dist/react-ssr-prepass.js.flow') | ||
) | ||
|
||
fs.copyFileSync( | ||
path.resolve(__dirname, 'react-ssr-prepass.js.flow'), | ||
path.resolve(__dirname, '../dist/react-ssr-prepass.es.js.flow') | ||
) |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.