Browse Source

Update package.json for projects to enabel storage node build on ‘yarn’.

Shamil Gadelshin 4 years ago
parent
commit
0f588e5776
3 changed files with 7 additions and 6 deletions
  1. 1 1
      package.json
  2. 4 4
      storage-node/package.json
  3. 2 1
      storage-node/packages/cli/package.json

+ 1 - 1
package.json

@@ -6,7 +6,7 @@
 	"scripts": {
 		"test": "yarn && yarn workspaces run test",
 		"test-migration": "yarn && yarn workspaces run test-migration",
-		"postinstall": "yarn workspace @joystream/types build",
+		"postinstall": "yarn workspace @joystream/types build && yarn workspace storage-node run build",
 		"cargo-checks": "devops/git-hooks/pre-commit && devops/git-hooks/pre-push",
 		"cargo-build": "scripts/cargo-build.sh"
 	},

+ 4 - 4
storage-node/package.json

@@ -33,18 +33,18 @@
   "scripts": {
     "test": "wsrun --serial test",
     "lint": "eslint --ignore-path .gitignore .",
-    "postinstall": "tsc --build"
+    "build": "yarn workspace @joystream/storage-cli run build"
   },
   "devDependencies": {
+    "@types/chai": "^4.2.11",
+    "@types/mocha": "^7.0.2",
     "eslint": "^5.16.0",
     "eslint-config-esnext": "^4.1.0",
     "eslint-config-prettier": "^6.11.0",
     "eslint-plugin-babel": "^5.3.1",
     "eslint-plugin-prettier": "^3.1.4",
     "prettier": "^2.0.5",
-    "wsrun": "^3.6.5",
     "typescript": "^3.9.6",
-    "@types/chai": "^4.2.11",
-    "@types/mocha": "^7.0.2"
+    "wsrun": "^3.6.5"
   }
 }

+ 2 - 1
storage-node/packages/cli/package.json

@@ -28,7 +28,8 @@
   },
   "scripts": {
     "test": "mocha 'dist/test/**/*.js'",
-    "lint": "eslint 'paths/**/*.js' 'lib/**/*.js'"
+    "lint": "eslint 'paths/**/*.js' 'lib/**/*.js'",
+    "build": "tsc --build"
   },
   "bin": {
     "storage-cli": "bin/cli.js"