Skip to content

Commit c2ca687

Browse files
committed
Add pnpm built packages configuration in package.json
1 parent fe46d11 commit c2ca687

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/create-react-app/createReactApp.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,10 @@ function createApp(name, verbose, version, template, useYarn, usePnp) {
302302
name: appName,
303303
version: '0.1.0',
304304
private: true,
305+
pnpm: {
306+
onlyBuiltDependencies: ['@parcel/watcher'],
307+
ignoredBuiltDependencies: ['core-js', 'core-js-pure'],
308+
},
305309
};
306310
fs.writeFileSync(
307311
path.join(root, 'package.json'),
@@ -1137,6 +1141,7 @@ function executeNodeScript({ cwd, args }, data, source) {
11371141
});
11381142
}
11391143

1144+
// eslint-disable-next-line no-unused-vars
11401145
function checkForLatestVersion() {
11411146
return new Promise((resolve, reject) => {
11421147
https

0 commit comments

Comments
 (0)