chore(ses): replace deprecated prepublish with prepare
npm WARN prepublish-on-install As of npm@5, `prepublish` scripts are deprecated.
npm WARN prepublish-on-install Use `prepare` for build steps and `prepublishOnly` for upload-only.
MODIFY
packages/ses/package.json
packages/ses/package.json
"lint-fix": "eslint --fix .",
"lint:js": "eslint .",
"lint:types": "tsc",
- "prepublish": "yarn run clean && yarn build",
+ "prepare": "yarn run clean && yarn build",
"qt": "ava",
"test": "tsd && ava",
"test:platform-compatibility": "node test/package/test.cjs"

MODIFY
scripts/check-packages.sh
scripts/check-packages.sh
@@ -30,7 +30,6 @@ for JSON in $(find packages -depth 2 -name 'package.json'); do
assert .exports.import "./src/main.js"
assert .exports.require "./dist/$NAME.cjs"
assert .exports.browser "./dist/$NAME.umd.js"
- assert .scripts.prepublish "yarn clean && yarn build"
assert .scripts.clean "rm -rf dist"
assert .scripts.build "rollup --config rollup.config.js"
assert .scripts.lint "eslint ."

chore(ses): replace deprecated prepublish with prepare

npm WARN prepublish-on-install As of npm@5, `prepublish` scripts are deprecated.
npm WARN prepublish-on-install Use `prepare` for build steps and `prepublishOnly` for upload-only.