static loadVisualPackage()

in lib/VisualPackage.js [63:74]


    static loadVisualPackage(rootPath) {
        return new Promise((resolve, reject) => {
            try {
                resolve(new VisualPackage(rootPath));
            } catch (e) {
                if (e && e.code && e.code === 'ENOENT') {
                    return reject(new Error(CONFIG_FILE + ' not found. You must be in the root of a visual project to run this command.'));
                }
                reject(e);
            }
        });
    }