Skip to content

Fix: #8 #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-node-resolve": "^13.3.0",
"codecov": "^3.6.1",
"codecov": "^3.6.2",
"eslint": "^8.17.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.5.0",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import path from 'node:path';
import path from 'path';

import { babel } from '@rollup/plugin-babel';
import commonjs from '@rollup/plugin-commonjs';
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import path from 'node:path';
import path from 'path';

import { bold, green, yellow } from 'colorette';
import fs from 'fs-extra';
Expand Down
2 changes: 1 addition & 1 deletion src/utils/ensureTrailingNewLine.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os from 'node:os';
import os from 'os';

export default function ensureTrailingNewLine(contents) {
if (!contents.endsWith(os.EOL)) return contents + os.EOL;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/stringify.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import util from 'node:util';
import util from 'util';

export default function stringify(value) {
return util.inspect(value, { breakLength: Infinity });
Expand Down
5 changes: 3 additions & 2 deletions tests/index.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { rollup, watch } from 'rollup';
import { bold, green, yellow } from 'colorette';
import fs from 'fs-extra';
import replace from 'replace-in-file';
import { bold, green, yellow } from 'colorette';
import { rollup, watch } from 'rollup';

import copy from '../src';
import { ensureTrailingNewLine } from '../src/utils';

Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1983,7 +1983,7 @@ code-point-at@^1.0.0:
resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
integrity sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==

codecov@^3.6.1:
codecov@^3.6.2:
version "3.8.3"
resolved "https://registry.yarnpkg.com/codecov/-/codecov-3.8.3.tgz#9c3e364b8a700c597346ae98418d09880a3fdbe7"
integrity sha512-Y8Hw+V3HgR7V71xWH2vQ9lyS358CbGCldWlJFR0JirqoGtOoas3R3/OclRTvgUYFK29mmJICDPauVKmpqbwhOA==
Expand Down