From 331dfdabf779f2d12b2cc0b8ae835592ca18b471 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Tue, 14 May 2019 14:14:47 +0200 Subject: [PATCH] fix: commonjs module resolution with npm --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 0140e5d..2bb85d9 100644 --- a/package.json +++ b/package.json @@ -1,16 +1,16 @@ { "name": "leafeon", - "version": "2.1.16", + "version": "2.1.18", "description": "Client-sided and dependency-free Javascript routing library", "author": "Sundowndev", - "main": "dist/leafeon", + "main": "lib/leafeon", "types": "lib/leafeon.d.ts", "directories": { "src": "src" }, "scripts": { "build:ts": "rimraf lib dist && tsc", - "build:webpack": "rimraf dist && webpack && webpack --config webpack.config.min.js", + "build:webpack": "rimraf dist && webpack --config webpack.config.js && webpack --config webpack.config.min.js", "build": "npm run build:ts && npm run build:webpack", "test": "npm run lint && npm run test:unit", "test:unit": "mocha --compilers ts:ts-node/register \"test/**/*.spec.ts\" --exit",