Skip to content

Commit

Permalink
Release v0.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Nov 19, 2022
1 parent 932f43b commit c4e853d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions dist/copy-file.d.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//! copy-file-util v0.1.5 ~~ https://github.com/center-key/copy-file-util ~~ MIT License
//! copy-file-util v0.1.6 ~~ https://github.com/center-key/copy-file-util ~~ MIT License

export declare type Settings = {
export type Settings = {
cd: string;
targetFile: string;
targetFolder: string;
fileExtension: string;
};
export declare type Options = Partial<Settings>;
export declare type Result = {
export type Options = Partial<Settings>;
export type Result = {
origin: string;
dest: string;
duration: number;
Expand Down
2 changes: 1 addition & 1 deletion dist/copy-file.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! copy-file-util v0.1.5 ~~ https://github.com/center-key/copy-file-util ~~ MIT License
//! copy-file-util v0.1.6 ~~ https://github.com/center-key/copy-file-util ~~ MIT License

import fs from 'fs';
import path from 'path';
Expand Down
2 changes: 1 addition & 1 deletion dist/copy-file.umd.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! copy-file-util v0.1.5 ~~ https://github.com/center-key/copy-file-util ~~ MIT License
//! copy-file-util v0.1.6 ~~ https://github.com/center-key/copy-file-util ~~ MIT License

var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "copy-file-util",
"version": "0.1.5",
"version": "0.1.6",
"description": "Copy or rename a file with optional package version number (CLI tool designed for use in npm scripts)",
"license": "MIT",
"type": "module",
Expand Down
10 changes: 5 additions & 5 deletions spec/mocha.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import fs from 'fs';
import { copyFile } from '../dist/copy-file.js';
const pkg = JSON.parse(fs.readFileSync('package.json', 'utf-8'));

////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
describe('The "dist" folder', () => {

it('contains the correct files', () => {
Expand All @@ -26,7 +26,7 @@ describe('The "dist" folder', () => {

});

////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
describe('Library module', () => {

it('is an object', () => {
Expand All @@ -43,7 +43,7 @@ describe('Library module', () => {

});

////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
describe('Calling copyFile.cp()', () => {

it('with a target file correctly renames a file', () => {
Expand Down Expand Up @@ -84,7 +84,7 @@ describe('Calling copyFile.cp()', () => {

});

////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
describe('Correct error is thrown', () => {

it('when the "source" file is missing', () => {
Expand All @@ -102,7 +102,7 @@ describe('Correct error is thrown', () => {

});

////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
describe('Executing the CLI', () => {

it('with template variables correctly inserts values from "package.json"', () => {
Expand Down

0 comments on commit c4e853d

Please sign in to comment.