Skip to content

Commit

Permalink
fix: update build
Browse files Browse the repository at this point in the history
  • Loading branch information
armano2 committed Mar 5, 2023
1 parent 44131a4 commit 0512904
Show file tree
Hide file tree
Showing 11 changed files with 1,015 additions and 1,006 deletions.
980 changes: 490 additions & 490 deletions dist/npm-to-yarn.mjs

Large diffs are not rendered by default.

1,000 changes: 500 additions & 500 deletions dist/npm-to-yarn.umd.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/types/command.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export declare function parse(command: string): string[];
export declare function parse(command: string): string[];
8 changes: 4 additions & 4 deletions dist/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
* Converts between npm and yarn command
*/
export default function convert(str: string, to: 'npm' | 'yarn' | 'pnpm'): string;
/**
* Converts between npm and yarn command
*/
export default function convert(str: string, to: 'npm' | 'yarn' | 'pnpm'): string;
2 changes: 1 addition & 1 deletion dist/types/npmToPnpm.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export declare function npmToPnpm(_m: string, command: string): string;
export declare function npmToPnpm(_m: string, command: string): string;
2 changes: 1 addition & 1 deletion dist/types/npmToYarn.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export declare function npmToYarn(_m: string, command: string): string;
export declare function npmToYarn(_m: string, command: string): string;
6 changes: 3 additions & 3 deletions dist/types/utils.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export declare const unchangedCLICommands: string[];
export declare const yarnCLICommands: string[];
export declare const npmCLICommands: string[];
export declare const unchangedCLICommands: string[];
export declare const yarnCLICommands: string[];
export declare const npmCLICommands: string[];
2 changes: 1 addition & 1 deletion dist/types/yarnToNpm.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export declare function yarnToNPM(_m: string, command: string): string;
export declare function yarnToNPM(_m: string, command: string): string;
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@
"scripts": {
"lint": "eslint src/*.ts test/*.spec.ts --ext .js,.ts",
"prebuild": "rimraf dist",
"build": "tsc --module es6 && rollup -c rollup.config.mjs",
"build": "rollup -c rollup.config.mjs",
"start": "rollup -c rollup.config.mjs -w",
"test": "jest --coverage",
"test:watch": "jest --coverage --watch",
"test:prod": "npm run lint && npm run test -- --no-cache",
"format": "prettier-standard --format \"{src,test}/**/*.{ts,json,md}\""
"format": "prettier-standard --format"
},
"lint-staged": {
"{src,test}/**/*.ts": [
Expand Down
13 changes: 11 additions & 2 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import typescript from 'rollup-plugin-typescript2'
import typescript from '@rollup/plugin-typescript'

export default [
{
Expand All @@ -17,7 +17,16 @@ export default [
sourcemap: true
}
],
plugins: [typescript({ useTsconfigDeclarationDir: true })],
plugins: [
typescript({
tsconfig: './tsconfig.json',
compilerOptions: {
declarationDir: './types',
sourceMap: true,
inlineSources: true
}
})
],
// Indicate here external modules you don't wanna include in your bundle (i.e.: 'lodash')
external: [],
watch: {
Expand Down

0 comments on commit 0512904

Please sign in to comment.