const path = require('path');
const { copyFiles } = require('mrm-core');

// These files will be overwritten without any confirmation
const files = [
  'LICENSE',
  '.github/ISSUE_TEMPLATE.md',
  '.github/PULL_REQUEST_TEMPLATE.md',
];

// These files will by created only once
const filesOnce = [
  'src/index.js',
  'CHANGELOG.md',
];

module.exports = () => {
  const templatesDir = path.resolve(__dirname, '../../templates');
  copyFiles(templatesDir, files);
  copyFiles(templatesDir, filesOnce, { overwrite: false });
};

@@ -308,16 +308,32 @@
 ex.js',%0A
+  'src/cjs.js',%0A
   'CHANG

add missing cjs.js to filesOnce