Skip to content

Commit 2085964

Browse files
committed
Release v1.2.2
1 parent 51fedb2 commit 2085964

4 files changed

Lines changed: 11 additions & 10 deletions

File tree

dist/esm-to-plain-js.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! esm-to-plain-js v1.2.1 ~~ https://github.com/center-key/esm-to-plain-js ~~ MIT License
1+
//! esm-to-plain-js v1.2.2 ~~ https://github.com/center-key/esm-to-plain-js ~~ MIT License
22

33
export type Settings = {
44
cd: string | null;

dist/esm-to-plain-js.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
//! esm-to-plain-js v1.2.1 ~~ https://github.com/center-key/esm-to-plain-js ~~ MIT License
1+
//! esm-to-plain-js v1.2.2 ~~ https://github.com/center-key/esm-to-plain-js ~~ MIT License
22

33
import { cliArgvUtil } from 'cli-argv-util';
4-
import { EOL } from 'node:os';
54
import chalk from 'chalk';
6-
import fs from 'fs';
5+
import fs from 'node:fs';
76
import log from 'fancy-log';
8-
import path from 'path';
7+
import os from 'node:os';
8+
import path from 'node:path';
99
import slash from 'slash';
1010
const esmToPlainJs = {
1111
assert(ok, message) {
@@ -59,7 +59,7 @@ const esmToPlainJs = {
5959
const exportPattern = /^export \{ (.*) \};$/m;
6060
const replaceImport = (stmt) => '// Ensure library is loaded => ' + stmt;
6161
const toGlobal = (module) => `globalThis.${module} = ${module};`;
62-
const replaceExport = (stmt, modules) => modules.split(', ').map(toGlobal).join(EOL);
62+
const replaceExport = (stmt, modules) => modules.split(', ').map(toGlobal).join(os.EOL);
6363
const plainJs = esm
6464
.replace(importPattern, replaceImport)
6565
.replace(exportPattern, replaceExport);

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "esm-to-plain-js",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "Simplistic string substitution to replace export with a globalThis assignment (CLI tool designed for use in npm package.json scripts)",
55
"license": "MIT",
66
"type": "module",
@@ -61,16 +61,16 @@
6161
"devDependencies": {
6262
"@eslint/js": "~10.0",
6363
"@types/fancy-log": "~2.0",
64-
"@types/node": "~25.5",
64+
"@types/node": "~25.9",
6565
"add-dist-header": "~1.6",
6666
"assert-deep-strict-equal": "~1.2",
6767
"copy-file-util": "~1.3",
68-
"eslint": "~10.1",
68+
"eslint": "~10.4",
6969
"jshint": "~2.13",
7070
"mocha": "~11.7",
7171
"rimraf": "~6.1",
7272
"run-scripts-util": "~1.3",
7373
"typescript": "~6.0",
74-
"typescript-eslint": "~8.58"
74+
"typescript-eslint": "~8.60"
7575
}
7676
}

task-runner.sh.command

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ releaseInstructions() {
7474
echo " git remote --verbose"
7575
echo " git push origin --tags"
7676
echo " npm whoami"
77+
echo " npm token"
7778
echo " npm publish"
7879
}
7980
test "$version" ">" "$released" && nextActionCommitTagPub || nextActionBump

0 commit comments

Comments
 (0)