@gjuchault/typescript-library-starter
Advanced tools
Comparing version 3.2.1 to 3.2.2
@@ -1,2 +0,2 @@ | ||
## [3.2.1](https://github.com/gjuchault/typescript-library-starter/compare/v3.2.0...v3.2.1) (2023-07-23) | ||
## [3.2.2](https://github.com/gjuchault/typescript-library-starter/compare/v3.2.1...v3.2.2) (2023-07-23) | ||
@@ -6,2 +6,2 @@ | ||
* **ts:** add noUncheckedIndexedAccess ([87404f3](https://github.com/gjuchault/typescript-library-starter/commit/87404f386286a83bc30e6fbef34c69e1e3ef7090)) | ||
* **build:** restore .d.ts ([fa7dd4b](https://github.com/gjuchault/typescript-library-starter/commit/fa7dd4b565699dbe21365b198e558dfe2146f389)) |
{ | ||
"name": "@gjuchault/typescript-library-starter", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"description": "Yet another typescript library starter template", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
import path from "node:path"; | ||
import url from "node:url"; | ||
import fs from "node:fs/promises"; | ||
import { globbyStream } from "globby"; | ||
import { build as esbuild } from "esbuild" | ||
import { build as esbuild } from "esbuild"; | ||
@@ -10,5 +9,3 @@ const srcPath = path.join(process.cwd(), "src"); | ||
async function buildFile( | ||
filePath: string, | ||
) { | ||
async function buildFile(filePath: string) { | ||
return esbuild({ | ||
@@ -27,8 +24,6 @@ platform: "node", | ||
async function build() { | ||
await fs.rm(buildPath, { recursive: true }); | ||
const filesStream = globbyStream('**/*.ts', { | ||
const filesStream = globbyStream("**/*.ts", { | ||
cwd: srcPath, | ||
onlyFiles: true, | ||
ignore: ["__tests__"] | ||
ignore: ["__tests__"], | ||
}); | ||
@@ -40,4 +35,4 @@ | ||
} | ||
await buildFile(filePath) | ||
await buildFile(filePath); | ||
} | ||
@@ -51,2 +46,1 @@ } | ||
} | ||
29679
35
499