From a7ea257fe6735d23a5775cdd2d57e81ea1fbcd0b Mon Sep 17 00:00:00 2001 From: Patricio Palladino Date: Mon, 28 Jan 2019 18:14:46 -0300 Subject: [PATCH] Fix bugs from previous commit and bump version --- README.md | 2 +- package.json | 2 +- sample-project/scripts/sample-script.js | 2 +- test/internal/util/packageInfo.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 58bd356a1e..0f250a3538 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ You can leverage buidler's infrastructure and configuration in your own scripts. By running them with `buidler run ` [the buidler environment](#the-buidler-environment) will be initialized, making all of its properties globally available. Your contracts will be compiled before if necessary. -You can also run them without using `buidler`, you just need to import [the buidler environment](#the-buidler-environment) with `require("buidler")`. If you run them this way, you have to use environment variables to pass arguments to buidler (e.g. NETWORK=develop). +You can also run them without using `buidler`, you just need to import [the buidler environment](#the-buidler-environment) with `require("@nomiclabs/buidler")`. If you run them this way, you have to use environment variables to pass arguments to buidler (e.g. NETWORK=develop). ## The buidler environment diff --git a/package.json b/package.json index 8c343c1003..235a40c303 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nomiclabs/buidler", - "version": "1.0.0-alpha.0", + "version": "1.0.0-alpha.1", "author": "Nomic Labs SRL", "license": "MIT", "homepage": "https://github.com/nomiclabs/buidler", diff --git a/sample-project/scripts/sample-script.js b/sample-project/scripts/sample-script.js index 1da93fb4d4..89cf212780 100644 --- a/sample-project/scripts/sample-script.js +++ b/sample-project/scripts/sample-script.js @@ -1,4 +1,4 @@ -const env = require("buidler"); +const env = require("@nomiclabs/buidler"); async function main() { await env.run("compile"); diff --git a/test/internal/util/packageInfo.ts b/test/internal/util/packageInfo.ts index 1ff7effa1b..a14f4fd7a3 100644 --- a/test/internal/util/packageInfo.ts +++ b/test/internal/util/packageInfo.ts @@ -9,7 +9,7 @@ import { describe("packageInfo", () => { it("Should give the right package.json", async () => { const packageJson = await getPackageJson(); - assert.equal(packageJson.name, "buidler"); + assert.equal(packageJson.name, "@nomiclabs/buidler"); // We don't test the version number because that would be hard to maintain assert.isString(packageJson.version); });