Skip to content

Commit

Permalink
Fix problem with no detect types import
Browse files Browse the repository at this point in the history
  • Loading branch information
Tutitoos committed Jul 23, 2023
1 parent 1319545 commit 0f05560
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "util-tiempo",
"version": "1.0.48",
"version": "1.0.49",
"description": "util-tiempo para calcular tiempos, para obtener la fecha a elegir, con muchas opciones!",
"author": "Tutitoos",
"license": "MIT",
Expand Down
7 changes: 5 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env node

import utilTiempo from "./lib/index";
import * as utilTiempo from "./lib/index";

module.exports = utilTiempo;
// Module.exports = utilTiempo;

export default utilTiempo;
export * from "./lib/index";
10 changes: 1 addition & 9 deletions src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,4 @@ import getMs from "./getMs";
import getTime from "./getTime";
import getNextTime from "./getNextTime";

export default {
get,
getCompareDate,
getDate,
getFormatDate,
getMs,
getTime,
getNextTime,
};
export { get, getCompareDate, getDate, getFormatDate, getMs, getTime, getNextTime };
2 changes: 1 addition & 1 deletion src/tests.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import utilTiempo from "./lib/index";
import utilTiempo from "./index";

const runTestGet = true;
const runTestGetCompareDate = true;
Expand Down

0 comments on commit 0f05560

Please sign in to comment.