From b3da328bc8681293978c8d83b4d1d11791dfe735 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 13 Aug 2023 04:39:00 +0300 Subject: [PATCH] 0.1.2 --- README.md | 10 +++++----- Source/Index.ts | 2 +- Target/Index.js | 2 +- package.json | 13 +++++++------ 4 files changed, 14 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 0cabe743..98985a06 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ This utility deletes all deployments older than 7 days in your Cloudflare Pages Add configuration and setup scripts: ```sh -npm install -D -E typescriptbuild +npm install -D -E javascriptbuild ``` ## Usage @@ -18,10 +18,10 @@ npm install -D -E typescriptbuild { "name": "my-awesome-package", "scripts": { - "prepublishOnly": "TypeScriptBuild 'Source/**/*.ts'" + "prepublishOnly": "JavaScriptBuild 'Source/**/*.ts'" }, "dependencies": { - "typescriptbuild": "0.1.2" + "javascriptbuild": "0.1.2" } } ``` @@ -31,7 +31,7 @@ npm install -D -E typescriptbuild ```json { "scripts": { - "prepublishOnly": "TypeScriptBuild 'Source/**/*.ts' -es esbuild.ts" + "prepublishOnly": "JavaScriptBuild 'Source/**/*.ts' -es esbuild.ts" } } ``` @@ -53,5 +53,5 @@ npm install -D -E typescriptbuild The script will now automatically compile your build files with [esbuild] and add TypeScript types. -[TypeScript Build]: https://npmjs.org/typescriptbuild +[TypeScript Build]: https://npmjs.org/javascriptbuild [esbuild]: https://npmjs.org/esbuild diff --git a/Source/Index.ts b/Source/Index.ts index 4e48ff14..65e3086c 100644 --- a/Source/Index.ts +++ b/Source/Index.ts @@ -4,7 +4,7 @@ import _JSON from "./Library/JSON.js"; try { new Command() - .name("TypeScript Build") + .name("JavaScriptBuild") .version((await _JSON("../package.json", import.meta.url))?.version) .description("Builds files") .argument("", "Files to build") diff --git a/Target/Index.js b/Target/Index.js index 602471f6..a93b96f3 100644 --- a/Target/Index.js +++ b/Target/Index.js @@ -1 +1 @@ -import{Command as o}from"commander";import e from"./Command/Build.js";import r from"./Library/JSON.js";try{new o().name("TypeScript Build").version((await r("../package.json",import.meta.url))?.version).description("Builds files").argument("","Files to build").option("-es, --esbuild ","esbuild configuration file").option("-ts, --TypeScript ","TypeScript configuration file").action(e).parse()}catch(i){console.log(i)} +import{Command as o}from"commander";import e from"./Command/Build.js";import r from"./Library/JSON.js";try{new o().name("JavaScriptBuild").version((await r("../package.json",import.meta.url))?.version).description("Builds files").argument("","Files to build").option("-es, --esbuild ","esbuild configuration file").option("-ts, --TypeScript ","TypeScript configuration file").action(e).parse()}catch(i){console.log(i)} diff --git a/package.json b/package.json index b8ba5f95..230ec0d7 100644 --- a/package.json +++ b/package.json @@ -1,21 +1,22 @@ { - "name": "typescriptbuild", + "name": "javascriptbuild", "version": "0.1.2", "private": false, - "description": "🧑🏻‍💻 Builds all TypeScript files within a given directory with esbuild.", - "homepage": "https://github.com/NikolaRHristov/TypeScriptBuild#readme", + "description": "🧑🏻‍💻 Builds JavaScript files from TypeScript with esbuild.", + "homepage": "https://github.com/NikolaRHristov/JavaScriptBuild#readme", "bugs": { - "url": "https://github.com/NikolaRHristov/TypeScriptBuild/issues" + "url": "https://github.com/NikolaRHristov/JavaScriptBuild/issues" }, "repository": { "type": "git", - "url": "git+https://github.com/NikolaRHristov/TypeScriptBuild.git" + "url": "git+https://github.com/NikolaRHristov/JavaScriptBuild.git" }, + "license": "MIT", "type": "module", "main": "./Target/Index.js", "types": "./Target/Index.d.ts", "bin": { - "TypeScriptBuild": "Target/Bin.js" + "JavaScriptBuild": "Target/Bin.js" }, "scripts": { "prepublishOnly": "node --no-warnings --loader ts-node/esm Source/Index.ts 'Source/**/*.ts'"