diff --git a/README.md b/README.md index e5da165f..b90e84ca 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# [TypeScriptBuild] 🌀 +# [TypeScriptESBuild] 🌀 Builds all your TypeScript files into JavaScript. @@ -7,7 +7,7 @@ Builds all your TypeScript files into JavaScript. Add configuration and setup scripts: ```sh -npm install -D -E typescript-build +npm install -D -E typescript-esbuild ``` ## Usage @@ -18,10 +18,10 @@ npm install -D -E typescript-build { "name": "package", "scripts": { - "prepublishOnly": "TypeScriptBuild 'Source/**/*.ts'" + "prepublishOnly": "TypeScriptESBuild 'Source/**/*.ts'" }, "dependencies": { - "typescript-build": "0.1.6" + "typescript-esbuild": "0.1.6" } } ``` @@ -31,7 +31,7 @@ npm install -D -E typescript-build ```json { "scripts": { - "prepublishOnly": "TypeScriptBuild 'Source/**/*.ts' -es esbuild.ts" + "prepublishOnly": "TypeScriptESBuild 'Source/**/*.ts' -es esbuild.ts" } } ``` @@ -45,7 +45,7 @@ npm install -D -E typescript-build "compilerOptions": { "outDir": "Target" }, - "extends": "typescript-build/Target/Configuration/TypeScript", + "extends": "typescript-esbuild/Target/Configuration/TypeScript", "include": ["Source"] } ``` @@ -53,5 +53,5 @@ npm install -D -E typescript-build The script will now automatically compile your build files with [esbuild] and add TypeScript types. -[TypeScriptBuild]: https://npmjs.org/typescript-build +[TypeScriptESBuild]: https://npmjs.org/typescript-esbuild [esbuild]: https://npmjs.org/esbuild diff --git a/Source/Index.ts b/Source/Index.ts index adc762e8..d7b6362e 100644 --- a/Source/Index.ts +++ b/Source/Index.ts @@ -4,7 +4,7 @@ import _JSON from "./Library/JSON.js"; try { new Command() - .name("TypeScriptBuild") + .name("TypeScriptESBuild") .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 31c5be61..a9c897c9 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("TypeScriptBuild").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("TypeScriptESBuild").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 917924aa..ad594439 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "typescript-build", + "name": "typescript-esbuild", "version": "0.1.7", "private": false, "description": "🌀 Builds all JavaScript files from TypeScript within a given folder using esbuild.", @@ -8,13 +8,13 @@ "typescript", "esbuild" ], - "homepage": "https://github.com/NikolaRHristov/TypeScriptBuild#readme", + "homepage": "https://github.com/NikolaRHristov/TypeScriptESBuild#readme", "bugs": { - "url": "https://github.com/NikolaRHristov/TypeScriptBuild/issues" + "url": "https://github.com/NikolaRHristov/TypeScriptESBuild/issues" }, "repository": { "type": "git", - "url": "git+https://github.com/NikolaRHristov/TypeScriptBuild.git", + "url": "git+https://github.com/NikolaRHristov/TypeScriptESBuild.git", "directory": "NPM" }, "license": "MIT", @@ -22,7 +22,7 @@ "main": "./Target/Index.js", "types": "./Target/Index.d.ts", "bin": { - "TypeScriptBuild": "Target/Bin.js" + "TypeScriptESBuild": "Target/Bin.js" }, "scripts": { "prepublishOnly": "node --no-warnings --loader ts-node/esm Source/Index.ts 'Source/**/*.ts'"