message: move rewrite script
diff: "license": "MIT",
  "private": false,
  "scripts": {
  - "build": "rimraf build && tsc --build tsconfig.build.json && tsc --build tsconfig.es6.json && ts-node scripts/rewrite.ts && ts-node ../../scripts/rewrite-locals.ts && ts-node scripts/package.ts",
  + "build": "rimraf build && tsc --build tsconfig.build.json && tsc --build tsconfig.es6.json && ts-node ../../scripts/rewrite-esm.ts && ts-node ../../scripts/rewrite-locals.ts && ts-node scripts/package.ts",
  "madge": "madge --circular --extensions ts -x \".*\\.d\\.ts\" ./src",
  "bench": "node bench/index.js && node bench/nestedMap.js && node bench/nestedChain.js",
  "postbuild": "yarn prettier --write \"./build/**/*.ts\"",
  