improvement - added publish script
MODIFY
package.json
package.json
{
"name": "marblejs",
- "version": "0.1.1",
"description": "Reactive Node APIs made easy",
"scripts": {
"postinstall": "npm run build",
"example": "ts-node example/index.ts",
"example:watch": "nodemon --watch packages --watch example --ext ts --ignore '*.spec.ts' --exec npm run example",
"lint": "tslint --config tslint.json --project tsconfig.json",
- "test": "NODE_ENV=test jest --expand",
- "test:coverage": "NODE_ENV=test jest --expand --coverage",
- "test:watch": "NODE_ENV=test jest --expand --onlyChanged --watch",
+ "test": "jest --expand",
+ "test:coverage": "jest --expand --coverage",
+ "test:watch": "jest --expand --onlyChanged --watch",
"prepublish": "npm run test",
- "publish": "lerna publish",
+ "publish": "./scripts/publish.sh",
"prepush": "npm run lint"
},
"repository": {

ADD
scripts/publish.sh
+#!/usr/bin/env bash
+
+cp README.md ./packages/core
+lerna publish
+rm -rf ./packages/core/README.md

improvement - added publish script