Browse Source

query-node: turn mappings into a package

metmirr 4 years ago
parent
commit
9db668abad
2 changed files with 39 additions and 0 deletions
  1. 20 0
      query-node/mappings/package.json
  2. 19 0
      query-node/mappings/tsconfig.json

+ 20 - 0
query-node/mappings/package.json

@@ -0,0 +1,20 @@
+{
+  "name": "mappings",
+  "version": "0.0.1",
+  "description": "Mappings for hydra-processor",
+  "main": "lib/mappings/index.js",
+  "license": "MIT",
+  "scripts": {
+    "build": "rm -rf lib && tsc --build tsconfig.json",
+    "lint": "echo \"Skippinng\"",
+    "clean": "rm -rf lib"
+  },
+  "dependencies": {
+    "@dzlzv/hydra-common": "0.0.3",
+    "@polkadot/types": "~2.10.2-7"
+  },
+  "devDependencies": {
+    "ts-node": "^9.0.0",
+    "typescript": "^3.8"
+  }
+}

+ 19 - 0
query-node/mappings/tsconfig.json

@@ -0,0 +1,19 @@
+{
+  "compilerOptions": {
+    "declaration": true,
+    "importHelpers": true,
+    "module": "commonjs",
+    "outDir": "lib",
+    "rootDirs": [
+        "./"
+    ],
+    "strict": true,
+    "target": "es2017",
+    "noImplicitAny": false,
+    "esModuleInterop": true,
+    "experimentalDecorators": true,
+    "emitDecoratorMetadata": true,
+    "skipLibCheck": true,    
+  },
+  "include": ["./**/*"]
+}