Open History to see the last commit
1const fs = require('fs')
2β
3const root = __dirname + '/../'
4const packageJsonPath = root + 'package.json'
5β
6function removePrivate(name) {
7 const pkg = require(name)
8 if (pkg.private === true) {
9 pkg.private = false
10 fs.writeFileSync(name, JSON.stringify(pkg, null, 2))
11 }
12}
13β
14removePrivate(packageJsonPath)
15β
16const packageJson = require(packageJsonPath)
17β
18packageJson.workspaces.forEach((workspace) => {
19 removePrivate(root + workspace + '/package.json')
20})