Comparing version
# CHANGELOG | ||
## 🚀 v0.4.13 | ||
- 🔨 Allow outputFolder to be an absolute path (#15) | ||
## 🚀 v0.4.12 | ||
@@ -4,0 +8,0 @@ |
@@ -94,5 +94,15 @@ var __create = Object.create; | ||
let fullPath = path.resolve(folder); | ||
let normalized = fullPath.replace(process.cwd(), "").substring(1); | ||
const cwd = ensureSlash(process.cwd()); | ||
let normalized = fullPath; | ||
if (normalized.startsWith(cwd)) { | ||
normalized = normalized.replace(cwd, ""); | ||
} | ||
return normalized; | ||
} | ||
function ensureSlash(input) { | ||
if (!input.endsWith(path.sep)) { | ||
input = input + path.sep; | ||
} | ||
return input; | ||
} | ||
function generateSprites(folder) { | ||
@@ -99,0 +109,0 @@ const svgFiles = fs.readdirSync(folder).filter((file) => file.endsWith(".svg")).map((file) => path.join(folder, file)); |
{ | ||
"name": "rmx-cli", | ||
"version": "0.4.12", | ||
"version": "0.4.13", | ||
"description": "A CLI for remix-run", | ||
@@ -5,0 +5,0 @@ "author": "Michael J. Carter <kiliman@gmail.com> (https://kiliman.dev/)", |
# rmx-cli | ||
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> | ||
[](#contributors-) | ||
[](#contributors-) | ||
<!-- ALL-CONTRIBUTORS-BADGE:END --> | ||
@@ -240,2 +238,3 @@ | ||
<td align="center"><a href="https://github.com/courdek"><img src="https://avatars.githubusercontent.com/u/319738?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Andrew Coppola</b></sub></a><br /><a href="https://github.com/Kiliman/rmx-cli/commits?author=courdek" title="Code">💻</a></td> | ||
<td align="center"><a href="https://about.me/knisterpeter"><img src="https://avatars.githubusercontent.com/u/327445?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Markus Wolf</b></sub></a><br /><a href="https://github.com/Kiliman/rmx-cli/commits?author=KnisterPeter" title="Code">💻</a></td> | ||
</tr> | ||
@@ -242,0 +241,0 @@ </table> |
41893
1.39%727
1.39%248
-0.4%