Skip to content

Commit

Permalink
Release v1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Aug 14, 2024
1 parent b7a6231 commit 8c815ef
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ See the **TypeScript Declarations** at the top of [esm-to-plain-js.ts](esm-to-pl
- 🪺 [recursive-exec](https://github.com/center-key/recursive-exec):  _Run a command on each file in a folder and its subfolders_
- 🔍 [replacer-util](https://github.com/center-key/replacer-util):  _Find and replace strings or template outputs in text files_
- 🔢 [rev-web-assets](https://github.com/center-key/rev-web-assets):  _Revision web asset filenames with cache busting content hash fingerprints_
- 🚆 [run-scripts-util](https://github.com/center-key/run-scripts-util):  _Organize npm package.json scripts into named groups of easy to manage commands_
- 🚆 [run-scripts-util](https://github.com/center-key/run-scripts-util):  _Organize npm package.json scripts into groups of easy to manage commands_
- 🚦 [w3c-html-validator](https://github.com/center-key/w3c-html-validator):  _Check the markup validity of HTML files using the W3C validator_

[MIT License](LICENSE.txt)
2 changes: 1 addition & 1 deletion dist/esm-to-plain-js.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! esm-to-plain-js v1.1.2 ~~ https://github.com/center-key/esm-to-plain-js ~~ MIT License
//! esm-to-plain-js v1.1.3 ~~ https://github.com/center-key/esm-to-plain-js ~~ MIT License

export type Settings = {
cd: string;
Expand Down
6 changes: 3 additions & 3 deletions dist/esm-to-plain-js.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! esm-to-plain-js v1.1.2 ~~ https://github.com/center-key/esm-to-plain-js ~~ MIT License
//! esm-to-plain-js v1.1.3 ~~ https://github.com/center-key/esm-to-plain-js ~~ MIT License

import chalk from 'chalk';
import fs from 'fs';
Expand Down Expand Up @@ -26,10 +26,10 @@ const esmToPlainJs = {
!sourceExists ? 'Source file does not exist: ' + source :
!sourceIsFile ? 'Source is not a file: ' + source :
!target ? 'Must specify a target file.' :
badTargetFolder ? 'Target folder cannot be written to: ' + targetFolder :
badTargetFolder ? 'Target folder cannot be written to: ' + String(targetFolder) :
null;
if (errorMessage)
throw Error('[esm-to-plain-js] ' + errorMessage);
throw new Error('[esm-to-plain-js] ' + errorMessage);
const esm = fs.readFileSync(source, 'utf-8');
const normalizeEol = /\r/g;
const normalizeEof = /\s*$(?!\n)/;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "esm-to-plain-js",
"version": "1.1.2",
"version": "1.1.3",
"description": "Simplistic string substitution to replace export with a globalThis assignment (CLI tool designed for use in npm package.json scripts)",
"license": "MIT",
"type": "module",
Expand Down Expand Up @@ -61,7 +61,7 @@
"devDependencies": {
"@eslint/js": "~9.9",
"@types/fancy-log": "~2.0",
"@types/node": "~22.2",
"@types/node": "~22.3",
"add-dist-header": "~1.4",
"assert-deep-strict-equal": "~1.2",
"copy-file-util": "~1.2",
Expand Down

0 comments on commit 8c815ef

Please sign in to comment.