const writeFileSync = require('fs').writeFileSync;
const pathResolve = require('path').resolve;

const packageName = process.argv[2];
const devPackage = require(pathResolve(__dirname, `../packages/${packageName}/package.json`));

delete devPackage.scripts;
delete devPackage.devDependencies;

const releasePackage = Object.assign(devPackage, {
  main: devPackage.main.replace(/^release\//, './'),
  module: devPackage.module.replace(/^release\//, './'),
  // types: devPackage.types.replace(/^release\//, './'),
});

writeFileSync(
  pathResolve(__dirname, `../packages/${packageName}/release/package.json`),
  JSON.stringify(releasePackage, null, 2)
);

@@ -453,15 +453,14 @@
 ,%0A  
-// type
+typing
 s: d
@@ -472,17 +472,19 @@
 kage.typ
-e
+ing
 s.replac

update copy script