Kaynağa Gözat

update dependency on types

Mokhtar Naamani 4 yıl önce
ebeveyn
işleme
458393ab7c

+ 1 - 1
cli/package.json

@@ -10,7 +10,7 @@
   "dependencies": {
     "@apidevtools/json-schema-ref-parser": "^9.0.6",
     "@ffprobe-installer/ffprobe": "^1.1.0",
-    "@joystream/types": "^0.14.0",
+    "@joystream/types": "^0.16.0",
     "@joystream/cd-schemas": "^0.1.0",
     "@oclif/command": "^1.5.19",
     "@oclif/config": "^1.14.0",

+ 1 - 1
content-directory-schemas/package.json

@@ -28,7 +28,7 @@
     "@joystream/prettier-config": "*",
     "@polkadot/api": "1.26.1",
     "@polkadot/keyring": "^3.0.1",
-    "@joystream/types": "^0.14.0",
+    "@joystream/types": "^0.16.0",
     "@apidevtools/json-schema-ref-parser": "^9.0.6"
   },
   "devDependencies": {

+ 1 - 1
query-node/package.json

@@ -28,7 +28,7 @@
 	},
 	"dependencies": {
 		"@dzlzv/hydra-indexer-lib": "^0.0.22-legacy.1.26.1",
-		"@joystream/types": "^0.14.0",
+		"@joystream/types": "^0.16.0",
 		"@types/bn.js": "^4.11.6",
 		"@types/debug": "^4.1.5",
 		"bn.js": "^5.1.2",

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

@@ -32,7 +32,7 @@
   "scripts": {
     "test": "mocha 'dist/test/**/*.js'",
     "lint": "eslint --ext .js,.ts . && tsc --noEmit --pretty",
-    "build": "tsc --build"
+    "build": "rm tsconfig.tsbuildinfo || tsc --build"
   },
   "bin": {
     "storage-cli": "./bin/cli.js"
@@ -47,7 +47,7 @@
     "@joystream/storage-runtime-api": "^0.1.0",
     "@joystream/service-discovery": "^0.1.0",
     "@joystream/storage-utils": "^0.1.0",
-    "@joystream/types": "^0.14.0",
+    "@joystream/types": "^0.16.0",
     "axios": "^0.19.2",
     "chalk": "^2.4.2",
     "lodash": "^4.17.11",

+ 1 - 1
storage-node/packages/runtime-api/package.json

@@ -46,7 +46,7 @@
   },
   "dependencies": {
     "@joystream/storage-utils": "^0.1.0",
-    "@joystream/types": "^0.14.0",
+    "@joystream/types": "^0.16.0",
     "@polkadot/api": "^1.26.1",
     "async-lock": "^1.2.0",
     "lodash": "^4.17.11",

+ 5 - 1
storage-node/tsconfig.json

@@ -9,7 +9,11 @@
     "esModuleInterop": true,
     "baseUrl": ".",
     "skipLibCheck": true,
-    "types": ["node", "mocha"]
+    "types": ["node", "mocha"],
+    "paths": {
+      "@polkadot/types/augment": ["../types/augment-codec/augment-types.ts"],
+      "@polkadot/api/augment": ["../types/augment-codec/augment-api.ts"]
+    }
   },
   "files": [],
   "exclude": ["**/node_modules/*", "build"],

+ 0 - 14
yarn.lock

@@ -2262,20 +2262,6 @@
     "@types/yargs" "^15.0.0"
     chalk "^4.0.0"
 
-"@joystream/types@^0.14.0":
-  version "0.14.0"
-  resolved "https://registry.yarnpkg.com/@joystream/types/-/types-0.14.0.tgz#3f243fb736d3cdd3dae90a90274c7a767fc96b75"
-  integrity sha512-t9LibCVM5j0NY2OQOXCGkZFFf1pbnQ9ccv0ZXMK7CfseRDwPtAlF/jVQUQQ03PAAGOKFWJQUenFUhPAbt6wKtg==
-  dependencies:
-    "@polkadot/api" "1.26.1"
-    "@polkadot/keyring" "^3.0.1"
-    "@polkadot/types" "1.26.1"
-    "@types/lodash" "^4.14.157"
-    "@types/vfile" "^4.0.0"
-    ajv "^6.11.0"
-    lodash "^4.17.15"
-    moment "^2.24.0"
-
 "@joystream/types@link:types":
   version "0.16.0"
   dependencies: