From 3f3195376a54a4dfd605eea521b0beac8de0e160 Mon Sep 17 00:00:00 2001 From: Simonas Karuzas Date: Fri, 24 Apr 2020 17:01:48 +0300 Subject: [PATCH] fix: Failing CI --- packages/daf-cli/package.json | 2 +- packages/daf-cli/{src/postinstall.ts => scripts/postinstall.js} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename packages/daf-cli/{src/postinstall.ts => scripts/postinstall.js} (93%) diff --git a/packages/daf-cli/package.json b/packages/daf-cli/package.json index b0f1d5010..11f6192de 100644 --- a/packages/daf-cli/package.json +++ b/packages/daf-cli/package.json @@ -8,7 +8,7 @@ "daf": "bin/daf.js" }, "scripts": { - "postinstall": "node build/postinstall.js", + "postinstall": "node scripts/postinstall", "build": "tsc", "watch": "tsc -b --watch" }, diff --git a/packages/daf-cli/src/postinstall.ts b/packages/daf-cli/scripts/postinstall.js similarity index 93% rename from packages/daf-cli/src/postinstall.ts rename to packages/daf-cli/scripts/postinstall.js index 927870417..c06ed4576 100644 --- a/packages/daf-cli/src/postinstall.ts +++ b/packages/daf-cli/scripts/postinstall.js @@ -1,5 +1,5 @@ const fs = require('fs') -import { SecretBox } from 'daf-libsodium' +const { SecretBox } = require('daf-libsodium') const defaultPath = process.env.HOME + '/.daf/' const envFile = defaultPath + '.env'