From 02d5d919be4f3cbeda9aad2b95370efef60fb62a Mon Sep 17 00:00:00 2001 From: gasolin Date: Thu, 8 Mar 2018 00:48:54 +0800 Subject: [PATCH] Rename module.json to arapp.json, fix #29 --- src/commands/init.js | 2 +- src/commands/version.js | 2 +- src/commands/versions.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/init.js b/src/commands/init.js index a69f90ead..a55a438c9 100644 --- a/src/commands/init.js +++ b/src/commands/init.js @@ -50,7 +50,7 @@ exports.builder = (yargs) => { exports.handler = function (reporter, { name, template }) { // Clone the template into the directory // TODO: Somehow write name to `manifest.json` in template? - // TODO: Write human-readable app name to `module.json` + // TODO: Write human-readable app name to `arapp.json` const basename = name.split('.')[0] reporter.info(`Cloning ${template} into ${basename}...`) diff --git a/src/commands/version.js b/src/commands/version.js index 8051db3a6..13de71234 100644 --- a/src/commands/version.js +++ b/src/commands/version.js @@ -14,7 +14,7 @@ exports.builder = function (yargs) { } exports.handler = async function (reporter, { bump, cwd }) { - const manifestLocation = await findUp('module.json', { cwd }) + const manifestLocation = await findUp('arapp.json', { cwd }) if (!manifestLocation) { throw new MessageError('This directory is not an Aragon project', 'ERR_NOT_A_PROJECT') diff --git a/src/commands/versions.js b/src/commands/versions.js index 7fb94d50a..21ccf9c4b 100644 --- a/src/commands/versions.js +++ b/src/commands/versions.js @@ -7,7 +7,7 @@ exports.command = 'versions' exports.describe = 'List all versions of the package' exports.handler = async function (reporter, { bump, cwd, ethRpc, apm: apmOptions }) { - const moduleLocation = await findUp('module.json', { cwd }) + const moduleLocation = await findUp('arapp.json', { cwd }) if (!moduleLocation) { throw new MessageError('This directory is not an Aragon project', 'ERR_NOT_A_PROJECT')