Skip to content

Commit

Permalink
fix: remove exports
Browse files Browse the repository at this point in the history
  • Loading branch information
armano2 committed Feb 12, 2023
1 parent bcef280 commit 58e39ca
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 22 deletions.
2 changes: 1 addition & 1 deletion dist/npm-to-yarn.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -320,5 +320,5 @@ function convert(str, to) {
}
}

export { convertToNpm, convertToYarn, convert as default };
export { convert as default };
//# sourceMappingURL=npm-to-yarn.mjs.map
2 changes: 1 addition & 1 deletion dist/npm-to-yarn.mjs.map

Large diffs are not rendered by default.

14 changes: 5 additions & 9 deletions 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.

8 changes: 0 additions & 8 deletions dist/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
/**
* Converts yarn to npm command
*/
export declare function convertToNpm(str: string): string;
/**
* Converts npm to yarn command
*/
export declare function convertToYarn(str: string): string;
/**
* Converts between npm and yarn command
*/
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import { npmToYarn } from './npmToYarn'
/**
* Converts yarn to npm command
*/
export function convertToNpm(str: string) {
function convertToNpm(str: string) {
return str.replace(/yarn(?: +([^&\n\r]*))?/gm, yarnToNPM)
}

/**
* Converts npm to yarn command
*/
export function convertToYarn(str: string) {
function convertToYarn(str: string) {
return str.replace(/npm(?: +([^&\n\r]*))?/gm, npmToYarn)
}

Expand Down

0 comments on commit 58e39ca

Please sign in to comment.