feat: bump version to 0.0.2

This commit is contained in:
Michal Szczepanski 2023-06-14 05:39:50 +02:00
parent 8fa0d45c4b
commit 2a9820cf22
3 changed files with 1 additions and 23 deletions

@ -1,6 +1,6 @@
{
"name": "@pinmenote/tiny-dispatcher",
"version": "0.0.1",
"version": "0.0.2",
"author": "Michal Szczepanski",
"license": "MIT",
"description": "tiny event dispatcher",

@ -1,10 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Hello World</title>
</head>
<body>
<script type="module" src="index.ts"></script>
</body>
</html>

@ -1,12 +0,0 @@
import { Config } from './config';
const h1 = document.createElement('h1');
document.body.appendChild(h1);
h1.innerText = `is production ${Config.isProduction.toString()}, foo value from .env: ${Config.foo || ''}`;
// Hot reloading
if (!Config.isProduction) {
const ws = new WebSocket('ws://localhost:1234');
ws.onmessage = () => {
window.location.reload();
};
}