Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
fix: Properly parse package names
Browse files Browse the repository at this point in the history
  • Loading branch information
bokub committed Sep 19, 2018
1 parent 1158b13 commit adcfb12
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
const path = require('path');
const tempDir = require('temp-dir');
const npmi = require('npmi');
const parse = require('parse-package-name');
const pify = require('pify');
const display = require('./display');
const lyo = require('..');

const install = pify(npmi);

async function get(module, flags) {
const [name, version] = module.split('@');
const {name, version} = parse(module);
const installOpts = {
name,
version,
Expand Down
7 changes: 6 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "lyo",
"description": "Node.js to browser - The easy way",
"version": "1.1.0",
"version": "1.1.1",
"author": "Boris K",
"bin": {
"lyo": "bin/cli.js"
Expand All @@ -22,6 +22,7 @@
"mkdirp": "^0.5.1",
"npmi": "^4.0.0",
"ora": "^3.0.0",
"parse-package-name": "^0.1.0",
"pify": "^4.0.0",
"pretty-ms": "^3.2.0",
"temp-dir": "^1.0.0",
Expand Down

0 comments on commit adcfb12

Please sign in to comment.