Skip to content

Commit

Permalink
0.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Aug 13, 2023
1 parent 5e2be5a commit ca3c915
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [TypeScriptBuild] 🌀
# [TypeScriptESBuild] 🌀

Builds all your TypeScript files into JavaScript.

Expand All @@ -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
Expand All @@ -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"
}
}
```
Expand All @@ -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"
}
}
```
Expand All @@ -45,13 +45,13 @@ npm install -D -E typescript-build
"compilerOptions": {
"outDir": "Target"
},
"extends": "typescript-build/Target/Configuration/TypeScript",
"extends": "typescript-esbuild/Target/Configuration/TypeScript",
"include": ["Source"]
}
```

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
2 changes: 1 addition & 1 deletion Source/Index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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...>", "Files to build")
Expand Down
2 changes: 1 addition & 1 deletion Target/Index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -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.",
Expand All @@ -8,21 +8,21 @@
"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",
"type": "module",
"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'"
Expand Down

0 comments on commit ca3c915

Please sign in to comment.