Skip to content

Commit

Permalink
0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Aug 13, 2023
1 parent b38b637 commit b3da328
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
}
}
```
Expand All @@ -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"
}
}
```
Expand All @@ -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
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("TypeScript Build")
.name("JavaScriptBuild")
.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.

13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -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'"
Expand Down

0 comments on commit b3da328

Please sign in to comment.