Skip to content

Commit

Permalink
Release v0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Sep 29, 2021
1 parent 9ebc050 commit da65e70
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
2 changes: 2 additions & 0 deletions dist/add-dist-header.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! add-dist-header v0.0.2 ~ github:center-key/add-dist-header ~ MIT License

export declare type Options = {
filename: string;
dist?: string;
Expand Down
2 changes: 2 additions & 0 deletions dist/add-dist-header.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! add-dist-header v0.0.2 ~ github:center-key/add-dist-header ~ MIT License

import { format, parse } from 'path';
import { readFileSync, writeFileSync } from 'fs';
import makeDir from 'make-dir';
Expand Down
2 changes: 2 additions & 0 deletions dist/add-dist-header.umd.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! add-dist-header v0.0.2 ~ github:center-key/add-dist-header ~ 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": "add-dist-header",
"version": "0.0.1",
"version": "0.0.2",
"description": "Adds a header comment to a file and saves it to your distribution folder (written in TypeScript)",
"license": "MIT",
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions spec/fixtures/dist/kebab.min.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*! add-dist-header v0.0.1 ~ github:center-key/add-dist-header ~ MIT License */
/*! add-dist-header v0.0.2 ~ github:center-key/add-dist-header ~ MIT License */

.kebab { /* v0.0.1 */
.kebab { /* v0.0.2 */
border: 2px solid firebrick;
border-radius: 3px;
}
6 changes: 3 additions & 3 deletions spec/fixtures/dist/to-kebab.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//! add-dist-header v0.0.1 ~ github:center-key/add-dist-header ~ MIT License
//! add-dist-header v0.0.2 ~ github:center-key/add-dist-header ~ MIT License

const toKebab = (camelStr) => { //v0.0.1
const toKebab = (camelStr) => { //v0.0.2
const dash = (word) => '-' + word.toLowerCase();
return ('' + camelStr).replace(/([A-Z]+)/g, dash).replace(/\s|^-/g, '');
};

module.exports = toKebab; //version: 0.0.1
module.exports = toKebab; //version: 0.0.2
2 changes: 1 addition & 1 deletion spec/fixtures/dist/to-kebab.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! add-dist-header v0.0.1 ~ github:center-key/add-dist-header ~ MIT License
//! add-dist-header v0.0.2 ~ github:center-key/add-dist-header ~ MIT License

const toKebab = (camelStr: string): string => { //v{{{version}}}
const dash = (word: string) => '-' + word.toLowerCase();
Expand Down

0 comments on commit da65e70

Please sign in to comment.