Skip to content

Commit 33dfb0e

Browse files
committed
20230403A
1 parent b0230ca commit 33dfb0e

File tree

6 files changed

+12
-13
lines changed

6 files changed

+12
-13
lines changed

hugoalh.GitHubActionsToolkit/module/nodejs-wrapper/main.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hugoalh.GitHubActionsToolkit/module/nodejs-wrapper/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@hugoalh/ghactions-toolkit-powershell-nodejs-wrapper-distribution",
2+
"name": "@hugoalh/ghactions-toolkit-powershell-nodejs-wrapper",
33
"version": "1.4.0",
44
"description": "A PowerShell module to provide a better and easier way for GitHub Actions to communicate with the runner machine, and the toolkit for developing GitHub Actions in PowerShell.",
55
"keywords": [

nodejs-wrapper-source/bundler.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { dirname as pathDirName, join as pathJoin } from "node:path";
21
import { existsSync as fsExistsSync } from "node:fs";
3-
import { fileURLToPath } from "node:url";
42
import { mkdir as fsMKDir, readdir as fsReadDir, readFile as fsReadFile, rm as fsRemove, writeFile as fsWriteFile } from "node:fs/promises";
3+
import { dirname as pathDirName, join as pathJoin } from "node:path";
4+
import { fileURLToPath } from "node:url";
55
import ncc from "@vercel/ncc";
66
const inputDirectoryPath = pathDirName(fileURLToPath(import.meta.url));
77
const packageFileName = "package.json"
@@ -43,5 +43,4 @@ let packageMeta = JSON.parse(await fsReadFile(pathJoin(inputDirectoryPath, packa
4343
delete packageMeta.scripts;
4444
delete packageMeta.dependencies;
4545
delete packageMeta.devDependencies;
46-
packageMeta.name = `${packageMeta.name}-distribution`;
4746
await fsWriteFile(pathJoin(outputDirectoryPath, packageFileName), `${JSON.stringify(packageMeta, undefined, "\t")}\n`, { encoding: "utf8" });

nodejs-wrapper-source/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { cacheDir as ghactionsToolCacheCacheDirectory, cacheFile as ghactionsToolCacheCacheFile, downloadTool as ghactionToolCacheDownloadTool, extract7z as ghactionToolCacheExtract7z, extractTar as ghactionToolCacheExtractTar, extractXar as ghactionToolCacheExtractXar, extractZip as ghactionToolCacheExtractZip, find as ghactionsToolCacheFind, findAllVersions as ghactionsToolCacheFindAllVersions } from "@actions/tool-cache";
21
import { create as ghactionsArtifact } from "@actions/artifact";
3-
import { debug as ghactionsDebug, getIDToken as ghactionsGetOpenIDConnectToken } from "@actions/core";
42
import { restoreCache as ghactionsCacheRestoreCache, saveCache as ghactionsCacheSaveCache } from "@actions/cache";
3+
import { debug as ghactionsDebug, getIDToken as ghactionsGetOpenIDConnectToken } from "@actions/core";
4+
import { cacheDir as ghactionsToolCacheCacheDirectory, cacheFile as ghactionsToolCacheCacheFile, downloadTool as ghactionToolCacheDownloadTool, extract7z as ghactionToolCacheExtract7z, extractTar as ghactionToolCacheExtractTar, extractXar as ghactionToolCacheExtractXar, extractZip as ghactionToolCacheExtractZip, find as ghactionsToolCacheFind, findAllVersions as ghactionsToolCacheFindAllVersions } from "@actions/tool-cache";
55
function encodeConvert(item, from, to) {
66
return Buffer.from(item, from).toString(to);
77
}

nodejs-wrapper-source/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"devDependencies": {
3737
"@types/node": "^18.15.11",
3838
"@vercel/ncc": "^0.36.1",
39-
"typescript": "^5.0.2"
39+
"typescript": "^5.0.3"
4040
},
4141
"engines": {
4242
"node": ">=14.15.0"

nodejs-wrapper-source/pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)