@bedard/types
Advanced tools
Comparing version 0.8.0 to 0.8.1
@@ -26,3 +26,3 @@ { | ||
}, | ||
"version": "0.8.0" | ||
"version": "0.8.1" | ||
} |
@@ -6,9 +6,12 @@ const exec = require('child_process').execSync | ||
const indexPath = path.resolve(__dirname, '../src/index.ts') | ||
const rootIndex = path.resolve(__dirname, '../index.ts') | ||
const srcIndex = path.resolve(__dirname, '../src/index.ts') | ||
async function cli() { | ||
const src = String(fs.readFileSync(indexPath)).replace('x.y.z', pkg.version) | ||
const src = String(fs.readFileSync(srcIndex)).replace('x.y.z', pkg.version) | ||
fs.writeFileSync(indexPath, src) | ||
fs.writeFileSync(srcIndex, src) | ||
fs.writeFileSync(rootIndex, `export * from './src/index'`) | ||
exec('npm publish') | ||
@@ -15,0 +18,0 @@ } |
46871
86
1143