Skip to content

Commit

Permalink
Remove import prefix
Browse files Browse the repository at this point in the history
Breaks in Node 12.
  • Loading branch information
Nixinova committed Nov 3, 2024
1 parent 90fe897 commit 8d1b6c9
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions build/download-files.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env tsx

import FS from 'node:fs';
import Path from 'node:path';
import FS from 'fs';
import Path from 'path';
import YAML from 'js-yaml';

import loadFile, { parseGeneratedDataFile } from '../src/helpers/load-data';
Expand Down
4 changes: 2 additions & 2 deletions src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const VERSION = require('../package.json').version;

import FS from 'node:fs';
import Path from 'node:path';
import FS from 'fs';
import Path from 'path';
import { program } from 'commander';

import linguist from './index';
Expand Down
4 changes: 2 additions & 2 deletions src/helpers/load-data.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import FS from 'node:fs';
import Path from 'node:path';
import FS from 'fs';
import Path from 'path';
import fetch from 'cross-fetch';
import Cache from 'node-cache';

Expand Down
2 changes: 1 addition & 1 deletion src/helpers/norm-path.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Path from 'node:path';
import Path from 'path';

export const normPath = function normalisedPath(...inputPaths: string[]) {
return Path.join(...inputPaths).replace(/\\/g, '/');
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/read-file.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import FS from 'node:fs';
import FS from 'fs';

/**
* Read part of a file on disc.
Expand Down
4 changes: 2 additions & 2 deletions src/helpers/walk-tree.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import FS from 'node:fs';
import Path from 'node:path';
import FS from 'fs';
import Path from 'path';
import { Ignore } from 'ignore';
import parseGitignore from './parse-gitignore';
import { normPath, normAbsPath } from './norm-path';
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import FS from 'node:fs';
import Path from 'node:path';
import FS from 'fs';
import Path from 'path';
import YAML from 'js-yaml';
import ignore, { Ignore } from 'ignore';
import commonPrefix from 'common-path-prefix';
Expand Down

0 comments on commit 8d1b6c9

Please sign in to comment.