From 195ffe9f5037872a4871fbe0772f726f0514b755 Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Thu, 19 Nov 2020 17:02:58 +0100 Subject: [PATCH] make some changes to compat mode --- scripts/compat.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/compat.js b/scripts/compat.js index 4a8e8dfb4202..b4fef57894ba 100644 --- a/scripts/compat.js +++ b/scripts/compat.js @@ -37,10 +37,16 @@ if (process.argv.includes('--prepare')) { // 5. Remove peerDependencies delete packageJson.peerDependencies - // 6. Write package.json with the new contents + // 6. Use new name + packageJson.name = '@tailwindcss/postcss7-compat' + + // 7. Make sure you can publish + packageJson.publishConfig = { access: 'public' } + + // 8. Write package.json with the new contents fs.writeFileSync(fromRootPath('package.json'), JSON.stringify(packageJson, null, 2), 'utf8') - // 7. Print some useful information to make publishing easy + // 9. Print some useful information to make publishing easy console.log() console.log('You can safely publish `tailwindcss` in PostCSS 7 compatibility mode:\n') console.log(