Skip to content

Commit

Permalink
chore: build
Browse files Browse the repository at this point in the history
  • Loading branch information
nebrelbug committed Dec 24, 2024
1 parent 98e3d69 commit f5210ac
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 4 deletions.
16 changes: 15 additions & 1 deletion dist/npm-to-yarn.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,16 @@ var npmToYarnTable = {
init: function (args) {
if (args[1] && !args[1].startsWith('-')) {
args[0] = 'create';
var m = args[1].match(/(.+)@latest/);
if (m) {
args[1] = m[1];
}
}
return args.filter(function (item) { return item !== '--scope'; });
},
create: function (args) {
return npmToYarnTable.init(args);
},
ln: 'link',
t: 'test',
tst: 'test',
Expand Down Expand Up @@ -452,9 +459,16 @@ var npmToPnpmTable = {
init: function (args) {
if (args[1] && !args[1].startsWith('-')) {
args[0] = 'create';
var m = args[1].match(/(.+)@latest/);
if (m) {
args[1] = m[1];
}
}
return args.filter(function (item) { return item !== '--scope'; });
},
create: function (args) {
return npmToPnpmTable.init(args);
},
ln: 'link',
t: 'test',
test: 'test',
Expand Down Expand Up @@ -585,7 +599,7 @@ function npmToBun(_m, command) {
}
else if (!args[1].startsWith('-')) {
cmd = 'bunx';
args[1] = "create-".concat(args[1]);
args[1] = "create-".concat(args[1].replace('@latest', ''));
args = args.slice(1);
}
else {
Expand Down
2 changes: 1 addition & 1 deletion dist/npm-to-yarn.mjs.map

Large diffs are not rendered by default.

16 changes: 15 additions & 1 deletion dist/npm-to-yarn.umd.js

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

2 changes: 1 addition & 1 deletion dist/npm-to-yarn.umd.js.map

Large diffs are not rendered by default.

0 comments on commit f5210ac

Please sign in to comment.