diff --git a/README.md b/README.md index cf08a7b..dfff04b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -# Telerin +

Logo

+

Telerin

+

npm version

Terminal/tileset renderer for web based games. diff --git a/example/example.ts b/example/example.ts index 68c0321..e6ab071 100644 --- a/example/example.ts +++ b/example/example.ts @@ -1,4 +1,4 @@ -import { Terminal } from ".."; +import { Terminal } from "../src"; const BOX_DRAWING_EXAMPLE = ` ┌─┬┐ ╔═╦╗ ╓─╥╖ ╒═╤╕ diff --git a/logo.png b/logo.png new file mode 100644 index 0000000..502de82 Binary files /dev/null and b/logo.png differ diff --git a/package.json b/package.json index 85d90a2..d8012e9 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "build": "./scripts/build", "typecheck": "tsc --noEmit", "declarations": "tsc --declaration --emitDeclarationOnly", - "prepublishOnly": "yarn typecheck && yarn build" + "prepublishOnly": "yarn declarations && yarn build" }, "devDependencies": { "esbuild": "^0.14.27", @@ -18,6 +18,6 @@ }, "files": [ "dist", - "index.ts" + "src" ] } diff --git a/scripts/build b/scripts/build index 542ed09..80b69f0 100755 --- a/scripts/build +++ b/scripts/build @@ -6,8 +6,9 @@ let esbuild = require("esbuild"); * @type {esbuild.BuildOptions} */ let options = { - entryPoints: ["index.ts"], + entryPoints: ["src/index.ts"], bundle: true, + target: ["es2020"], minify: true, sourcemap: true, loader: { ".png": "dataurl" }, diff --git a/esbuild.d.ts b/src/esbuild.d.ts similarity index 100% rename from esbuild.d.ts rename to src/esbuild.d.ts diff --git a/font.png b/src/font.png similarity index 100% rename from font.png rename to src/font.png diff --git a/index.ts b/src/index.ts similarity index 100% rename from index.ts rename to src/index.ts diff --git a/tsconfig.json b/tsconfig.json index 15d7786..409dd99 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,6 +9,8 @@ "esModuleInterop": true, "noUnusedLocals": true, "noImplicitReturns": true, - "outDir": "dist" - } + "outDir": "dist", + "baseUrl": "src" + }, + "include": ["src"] } \ No newline at end of file