diff --git a/config/exceptions.yaml b/config/exceptions.yaml index 58fb98e9bfd..3dbdb3fac17 100644 --- a/config/exceptions.yaml +++ b/config/exceptions.yaml @@ -9,7 +9,7 @@ customChangelog: - freesewing.dev - freesewing.shared - freesewing.org -customPacakgeJson: +customPackageJson: - freesewing.dev - freesewing.shared - freesewing.org diff --git a/packages/freesewing.dev/CHANGELOG.md b/packages/freesewing.dev/CHANGELOG.md new file mode 100644 index 00000000000..aa71b848284 --- /dev/null +++ b/packages/freesewing.dev/CHANGELOG.md @@ -0,0 +1,9 @@ +# Change log for: freesewing.dev + + + +This is the **initial release**, and the start of this change log. + +> Prior to version 2, FreeSewing was not a JavaScript project. +> As such, that history is out of scope for this change log. + diff --git a/packages/freesewing.org/CHANGELOG.md b/packages/freesewing.org/CHANGELOG.md new file mode 100644 index 00000000000..ad0c3844f55 --- /dev/null +++ b/packages/freesewing.org/CHANGELOG.md @@ -0,0 +1,9 @@ +# Change log for: freesewing.org + + + +This is the **initial release**, and the start of this change log. + +> Prior to version 2, FreeSewing was not a JavaScript project. +> As such, that history is out of scope for this change log. + diff --git a/packages/freesewing.shared/CHANGELOG.md b/packages/freesewing.shared/CHANGELOG.md new file mode 100644 index 00000000000..350c97964ac --- /dev/null +++ b/packages/freesewing.shared/CHANGELOG.md @@ -0,0 +1,9 @@ +# Change log for: freesewing.shared + + + +This is the **initial release**, and the start of this change log. + +> Prior to version 2, FreeSewing was not a JavaScript project. +> As such, that history is out of scope for this change log. + diff --git a/scripts/reconfigure.js b/scripts/reconfigure.js index 630afdfa1f2..43f6bd8dc38 100644 --- a/scripts/reconfigure.js +++ b/scripts/reconfigure.js @@ -504,24 +504,30 @@ function configurePkgUnitTests(type, pkg, config) { * New: Adds unit tests for patterns */ function reconfigure(pkgs, config) { - for (let pkg of pkgs) { + for (const pkg of pkgs) { console.log(chalk.blueBright(`Reconfiguring ${pkg}`)) - let pkgConfig = packageConfig(pkg, config) - fs.writeFileSync( - path.join(config.repoPath, 'packages', pkg, 'package.json'), - JSON.stringify(pkgConfig, null, 2) + '\n' - ) + if (config.exceptions.customPackageJson.indexOf(pkg) === -1) { + const pkgConfig = packageConfig(pkg, config) + fs.writeFileSync( + path.join(config.repoPath, 'packages', pkg, 'package.json'), + JSON.stringify(pkgConfig, null, 2) + '\n' + ) + } if (config.exceptions.customRollup.indexOf(pkg) === -1) { fs.writeFileSync( path.join(config.repoPath, 'packages', pkg, 'rollup.config.js'), config.templates.rollup ) } - fs.writeFileSync(path.join(config.repoPath, 'packages', pkg, 'README.md'), readme(pkg, config)) - fs.writeFileSync( - path.join(config.repoPath, 'packages', pkg, 'CHANGELOG.md'), - changelog(pkg, config) - ) + if (config.exceptions.customReadme.indexOf(pkg) === -1) { + fs.writeFileSync(path.join(config.repoPath, 'packages', pkg, 'README.md'), readme(pkg, config)) + } + if (config.exceptions.customChangelog.indexOf(pkg) === -1) { + fs.writeFileSync( + path.join(config.repoPath, 'packages', pkg, 'CHANGELOG.md'), + changelog(pkg, config) + ) + } const type = packageType(pkg, config) if (type === 'pattern') configurePatternExample(pkg, config) if (['pattern', 'plugin'].indexOf(type) !== -1) configurePkgUnitTests(type, pkg, config)