Skip to content

Commit 195ffe9

Browse files
committed
make some changes to compat mode
1 parent f5010f5 commit 195ffe9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

scripts/compat.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,16 @@ if (process.argv.includes('--prepare')) {
3737
// 5. Remove peerDependencies
3838
delete packageJson.peerDependencies
3939

40-
// 6. Write package.json with the new contents
40+
// 6. Use new name
41+
packageJson.name = '@tailwindcss/postcss7-compat'
42+
43+
// 7. Make sure you can publish
44+
packageJson.publishConfig = { access: 'public' }
45+
46+
// 8. Write package.json with the new contents
4147
fs.writeFileSync(fromRootPath('package.json'), JSON.stringify(packageJson, null, 2), 'utf8')
4248

43-
// 7. Print some useful information to make publishing easy
49+
// 9. Print some useful information to make publishing easy
4450
console.log()
4551
console.log('You can safely publish `tailwindcss` in PostCSS 7 compatibility mode:\n')
4652
console.log(

0 commit comments

Comments
 (0)