mirror of
https://github.com/ivuorinen/base-configs.git
synced 2026-01-26 03:03:59 +00:00
Initial commit
This commit is contained in:
14
packages/semantic-release-config/scripts/postinstall.js
Normal file
14
packages/semantic-release-config/scripts/postinstall.js
Normal file
@@ -0,0 +1,14 @@
|
||||
'use strict'
|
||||
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
|
||||
const filePath = path.join(process.env.INIT_CWD, '.releaserc.json')
|
||||
|
||||
const fileConfigObject = {
|
||||
extends: ['@ivuorinen/semantic-release-config']
|
||||
}
|
||||
|
||||
if (!fs.existsSync(filePath)) {
|
||||
fs.writeFileSync(filePath, JSON.stringify(fileConfigObject, undefined, 2))
|
||||
}
|
||||
Reference in New Issue
Block a user