diff --git a/dist/add-dist-header.d.ts b/dist/add-dist-header.d.ts
index 1d7abca..16765ba 100644
--- a/dist/add-dist-header.d.ts
+++ b/dist/add-dist-header.d.ts
@@ -1,4 +1,4 @@
-//! add-dist-header v1.3.2 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
+//! add-dist-header v1.3.3 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
export type Settings = {
allFiles: boolean;
diff --git a/dist/add-dist-header.js b/dist/add-dist-header.js
index e5a4425..657a472 100644
--- a/dist/add-dist-header.js
+++ b/dist/add-dist-header.js
@@ -1,4 +1,4 @@
-//! add-dist-header v1.3.2 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
+//! add-dist-header v1.3.3 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
import { isBinary } from 'istextorbinary';
import chalk from 'chalk';
@@ -70,7 +70,7 @@ const addDistHeader = {
text: isTextFile,
dist: distFolder,
header: isTextFile ? header : null,
- source: filename,
+ source: slash(filename),
file: outputPath,
length: isTextFile ? final.length : null,
size: isTextFile ? (final.length / 1024).toLocaleString([], fixedDigits) + ' KB' : null,
diff --git a/package.json b/package.json
index 489ebdf..a60166f 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "add-dist-header",
- "version": "1.3.2",
+ "version": "1.3.3",
"description": "Prepend a one-line banner comment (with license notice) to distribution files",
"license": "MIT",
"type": "module",
diff --git a/spec/fixtures/target/cli/all/kebab.css b/spec/fixtures/target/cli/all/kebab.css
index 09ea22f..56c0779 100644
--- a/spec/fixtures/target/cli/all/kebab.css
+++ b/spec/fixtures/target/cli/all/kebab.css
@@ -1,6 +1,6 @@
-/*! add-dist-header v1.3.2 ~~ https://github.com/center-key/add-dist-header ~~ MIT License */
+/*! add-dist-header v1.3.3 ~~ https://github.com/center-key/add-dist-header ~~ MIT License */
-.kebab { /* v1.3.2 */
+.kebab { /* v1.3.3 */
border: 2px solid firebrick;
border-radius: 3px;
}
diff --git a/spec/fixtures/target/cli/all/kebab.html b/spec/fixtures/target/cli/all/kebab.html
index 4755867..e80ec71 100644
--- a/spec/fixtures/target/cli/all/kebab.html
+++ b/spec/fixtures/target/cli/all/kebab.html
@@ -1,11 +1,11 @@
-
+
Kebab • π’π’π’
- Kebab v1.3.2
+ Kebab v1.3.3
diff --git a/spec/fixtures/target/cli/all/kebab.js b/spec/fixtures/target/cli/all/kebab.js
index e352dd7..cd5fd73 100644
--- a/spec/fixtures/target/cli/all/kebab.js
+++ b/spec/fixtures/target/cli/all/kebab.js
@@ -1,8 +1,8 @@
-//! add-dist-header v1.3.2 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
+//! add-dist-header v1.3.3 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
-const toKebab = (camelStr) => { //v1.3.2
+const toKebab = (camelStr) => { //v1.3.3
const dash = (word) => '-' + word.toLowerCase();
return ('' + camelStr).replace(/([A-Z]+)/g, dash).replace(/\s|^-/g, '');
};
-export { toKebab }; //version: 1.3.2
+export { toKebab }; //version: 1.3.3
diff --git a/spec/fixtures/target/cli/all/kebab.min.js b/spec/fixtures/target/cli/all/kebab.min.js
index b946bef..c158692 100644
--- a/spec/fixtures/target/cli/all/kebab.min.js
+++ b/spec/fixtures/target/cli/all/kebab.min.js
@@ -1,2 +1,2 @@
-//! add-dist-header v1.3.2 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
+//! add-dist-header v1.3.3 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
const toKebab=(c)=>{const d=(w)=>'-'+ w.toLowerCase();return(''+c).replace(/([A-Z]+)/g,d).replace(/\s|^-/g,'');};module.exports=toKebab;
diff --git a/spec/fixtures/target/cli/all/kebab.ts b/spec/fixtures/target/cli/all/kebab.ts
index 6a175ee..22c49bb 100644
--- a/spec/fixtures/target/cli/all/kebab.ts
+++ b/spec/fixtures/target/cli/all/kebab.ts
@@ -1,9 +1,9 @@
-//! add-dist-header v1.3.2 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
+//! add-dist-header v1.3.3 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
//! This comment is important!
-const toKebab = (camelStr: string): string => { //v1.3.2
+const toKebab = (camelStr: string): string => { //v1.3.3
const dash = (word: string) => '-' + word.toLowerCase();
return ('' + camelStr).replace(/([A-Z]+)/g, dash).replace(/\s|^-/g, '');
};
-export { toKebab }; //version: 1.3.2
+export { toKebab }; //version: 1.3.3
diff --git a/spec/fixtures/target/cli/all/kebab.xml b/spec/fixtures/target/cli/all/kebab.xml
index eb23784..5e09025 100644
--- a/spec/fixtures/target/cli/all/kebab.xml
+++ b/spec/fixtures/target/cli/all/kebab.xml
@@ -1,5 +1,5 @@
-
+
diff --git a/spec/fixtures/target/cli/all/subfolder/pita-bread.js b/spec/fixtures/target/cli/all/subfolder/pita-bread.js
index b29bede..238f1c0 100644
--- a/spec/fixtures/target/cli/all/subfolder/pita-bread.js
+++ b/spec/fixtures/target/cli/all/subfolder/pita-bread.js
@@ -1,7 +1,7 @@
-//! add-dist-header v1.3.2 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
+//! add-dist-header v1.3.3 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
import { toKebab } from '../kebab';
-const pitaBread = (str) => `π« ${toKebab(str)} π«`; //v1.3.2
+const pitaBread = (str) => `π« ${toKebab(str)} π«`; //v1.3.3
export { pitaBread };
diff --git a/spec/fixtures/target/cli/ext/kebab.css b/spec/fixtures/target/cli/ext/kebab.css
index 09ea22f..56c0779 100644
--- a/spec/fixtures/target/cli/ext/kebab.css
+++ b/spec/fixtures/target/cli/ext/kebab.css
@@ -1,6 +1,6 @@
-/*! add-dist-header v1.3.2 ~~ https://github.com/center-key/add-dist-header ~~ MIT License */
+/*! add-dist-header v1.3.3 ~~ https://github.com/center-key/add-dist-header ~~ MIT License */
-.kebab { /* v1.3.2 */
+.kebab { /* v1.3.3 */
border: 2px solid firebrick;
border-radius: 3px;
}
diff --git a/spec/fixtures/target/cli/ext/kebab.js b/spec/fixtures/target/cli/ext/kebab.js
index e352dd7..cd5fd73 100644
--- a/spec/fixtures/target/cli/ext/kebab.js
+++ b/spec/fixtures/target/cli/ext/kebab.js
@@ -1,8 +1,8 @@
-//! add-dist-header v1.3.2 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
+//! add-dist-header v1.3.3 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
-const toKebab = (camelStr) => { //v1.3.2
+const toKebab = (camelStr) => { //v1.3.3
const dash = (word) => '-' + word.toLowerCase();
return ('' + camelStr).replace(/([A-Z]+)/g, dash).replace(/\s|^-/g, '');
};
-export { toKebab }; //version: 1.3.2
+export { toKebab }; //version: 1.3.3
diff --git a/spec/fixtures/target/cli/ext/kebab.min.js b/spec/fixtures/target/cli/ext/kebab.min.js
index b946bef..c158692 100644
--- a/spec/fixtures/target/cli/ext/kebab.min.js
+++ b/spec/fixtures/target/cli/ext/kebab.min.js
@@ -1,2 +1,2 @@
-//! add-dist-header v1.3.2 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
+//! add-dist-header v1.3.3 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
const toKebab=(c)=>{const d=(w)=>'-'+ w.toLowerCase();return(''+c).replace(/([A-Z]+)/g,d).replace(/\s|^-/g,'');};module.exports=toKebab;
diff --git a/spec/fixtures/target/kebab.html b/spec/fixtures/target/kebab.html
index 50b4948..266b9e8 100644
--- a/spec/fixtures/target/kebab.html
+++ b/spec/fixtures/target/kebab.html
@@ -1,4 +1,4 @@
-
+
@@ -7,6 +7,6 @@
Kebab • π’π’π’
- Kebab v1.3.2
+ Kebab v1.3.3