From 3b16870fc6dd1e0cbdaeb4723b3efe285ea4d1ea Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Tue, 7 Jul 2020 17:04:34 +0530 Subject: [PATCH] build and test working for remix-url-resolver --- libs/remix-url-resolver/package.json | 4 ++-- libs/remix-url-resolver/tsconfig.json | 2 +- package-lock.json | 6 ++++++ package.json | 1 + workspace.json | 13 ++++++------- 5 files changed, 16 insertions(+), 10 deletions(-) diff --git a/libs/remix-url-resolver/package.json b/libs/remix-url-resolver/package.json index acb819bf72..6afec644ce 100644 --- a/libs/remix-url-resolver/package.json +++ b/libs/remix-url-resolver/package.json @@ -1,5 +1,5 @@ { - "name": "remix-url-resolver", + "name": "@remix-project/remix-url-resolver", "version": "0.0.15", "description": "Solidity import url resolver engine", "main": "dist", @@ -7,7 +7,7 @@ "scripts": { "build": "tsc", "lint": "standard", - "test": "standard && mocha --require ts-node/register tests/*.ts -t 300000", + "test": "./../../node_modules/.bin/mocha --require ts-node/register --require tsconfig-paths/register tests/*.ts -t 300000", "prepublish": "npm run build" }, "repository": { diff --git a/libs/remix-url-resolver/tsconfig.json b/libs/remix-url-resolver/tsconfig.json index 12516f33dd..e90bdfae16 100644 --- a/libs/remix-url-resolver/tsconfig.json +++ b/libs/remix-url-resolver/tsconfig.json @@ -1,7 +1,7 @@ { "extends": "../../tsconfig.json", "compilerOptions": { - "types": ["node"], + "types": ["node", "mocha"], "module": "commonjs", "esModuleInterop": true }, diff --git a/package-lock.json b/package-lock.json index 66e5d239bf..c3e09a81fa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2331,6 +2331,12 @@ "@types/node": "*" } }, + "@types/chai": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.2.11.tgz", + "integrity": "sha512-t7uW6eFafjO+qJ3BIV2gGUyZs27egcNRkUdalkud+Qa3+kg//f129iuOFivHDXQ+vnU3fDXuwgv0cqMCbcE8sw==", + "dev": true + }, "@types/color-name": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", diff --git a/package.json b/package.json index c15afe374c..fe1e4c9094 100644 --- a/package.json +++ b/package.json @@ -165,6 +165,7 @@ "@remix-project/remix-solidity": "0.3.30", "@remix-project/remix-tests": "0.1.33", "@resolver-engine/imports": "^0.3.0", + "@types/chai": "^4.2.11", "@types/mocha": "^7.0.2", "@types/node": "~8.9.4", "@typescript-eslint/eslint-plugin": "^3.3.0", diff --git a/workspace.json b/workspace.json index f9c8a6eab8..c8802e6db4 100644 --- a/workspace.json +++ b/workspace.json @@ -376,14 +376,13 @@ } }, "build": { - "builder": "@nrwl/workspace:run-commands", + "builder": "@nrwl/node:package", "options": { - "commands": [ - { - "command": "./../../node_modules/.bin/npm-run-all build" - } - ], - "cwd": "libs/remix-url-resolver" + "outputPath": "dist/libs/remix-url-resolver", + "tsConfig": "libs/remix-url-resolver/tsconfig.lib.json", + "packageJson": "libs/remix-url-resolver/package.json", + "main": "libs/remix-url-resolver/src/index.ts", + "assets": ["libs/remix-url-resolver/*.md"] } } }