Skip to content

Commit

Permalink
fix: esm node version (#6)
Browse files Browse the repository at this point in the history
* fix: min esm node version

* fix: import "os"
  • Loading branch information
jeronimoek authored Mar 14, 2023
1 parent d8efadf commit 1f13795
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import path from "path";
import { getTablesWithData } from "./getTablesWithData";
import { tableToMarkdown } from "./tableToMarkdown";
import appRoot from "app-root-path";
const { EOL } = require("os");
import { EOL } from "os";

interface Column {
columnHeader: string;
Expand Down
2 changes: 1 addition & 1 deletion src/tableToMarkdown.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Table } from "./index";
import { unicodePadEnd } from "./utils";
const { EOL } = require("os");
import { EOL } from "os";

export function tableToMarkdown(table: Table) {
let tableString = EOL.repeat(2);
Expand Down
2 changes: 1 addition & 1 deletion tests/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { markdownVscodeContributions } from "../dist/cjs/index";
import npmPackage from "../dist/cjs/index";
import path from "path";
import stringWidth from "string-width";
const { EOL } = require("os");
import { EOL } from "os";

describe("NPM Package", () => {
it("should be an object", () => {
Expand Down

0 comments on commit 1f13795

Please sign in to comment.