diff --git a/package.json b/package.json index 805457a..48cc823 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,15 @@ { "name": "@shirtiny/logger", - "version": "2.1.3", + "version": "2.1.4", "description": "Simple console log with css, write in typescript.", "types": "./dist/types/main.d.ts", - "main": "./dist/cli.js", + "main": "./dist/main.browser.js", "browser": "./dist/main.browser.js", - "module": "./dist/main.es.js", + "module": "./dist/main.browser.js", "exports": { ".": { - "import": "./dist/main.es.js", - "require": "./dist/cli.js" + "import": "./dist/main.browser.js", + "require": "./dist/main.browser.js" } }, "bin": "./dist/cli.js", @@ -20,15 +20,15 @@ "scripts": { "start": "node .node/server.js", "prestart": "npm run esbuild-main:dev && shx cp -rf public/* dist/", - "esbuild-main:dev": "esbuild src/main.ts --platform=browser --global-name=shLogger --bundle --sourcemap=external --outfile=dist/main.dev.js", + "esbuild-main:dev": "esbuild src/main.ts --platform=browser --global-name=shirtinyLogger --bundle --sourcemap=external --outfile=dist/main.dev.js", "test": "jest", "lint": "eslint --max-warnings 0 . --ext .ts", "build": "tsc -p tsconfig.json", "clean": "shx rm -rf dist build", "ts-node": "ts-node", "build-all": "npm run clean && npm run build && npm run esbuild-node && npm run esbuild-browser && npm run esbuild-esm", - "esbuild-browser": "esbuild src/browser.ts --platform=browser --global-name=shLogger --bundle --minify --outfile=dist/main.browser.js", - "esbuild-browser:dev": "esbuild src/browser.ts --platform=browser --global-name=shLogger --bundle --sourcemap=external --outfile=dist/main.browser.js", + "esbuild-browser": "esbuild src/browser.ts --platform=browser --global-name=shirtinyLogger --bundle --minify --outfile=dist/main.browser.js", + "esbuild-browser:dev": "esbuild src/browser.ts --platform=browser --global-name=shirtinyLogger --bundle --sourcemap=external --outfile=dist/main.browser.js", "esbuild-node": "esbuild src/cli.ts --bundle --platform=node --minify --outfile=dist/cli.js", "esbuild-node:dev": "esbuild src/cli.ts --bundle --platform=node --sourcemap=external --outfile=dist/cli.js", "esbuild-esm": "esbuild src/es.ts --platform=neutral --bundle --minify --outfile=dist/main.es.js",