mirror of
https://github.com/ivuorinen/base-configs.git
synced 2026-02-12 21:47:24 +00:00
Initial commit
This commit is contained in:
12
packages/prettier-config/scripts/postinstall.js
Normal file
12
packages/prettier-config/scripts/postinstall.js
Normal file
@@ -0,0 +1,12 @@
|
||||
'use strict'
|
||||
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
|
||||
const filePath = path.join(process.env.INIT_CWD, '.prettierrc.json')
|
||||
|
||||
const fileConfigObject = '@ivuorinen/prettier-config'
|
||||
|
||||
if (!fs.existsSync(filePath)) {
|
||||
fs.writeFileSync(filePath, JSON.stringify(fileConfigObject, undefined, 2))
|
||||
}
|
||||
Reference in New Issue
Block a user