From 4c75bae0e8f318c2af86345c0b21469b04c1a184 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Thu, 9 Jan 2020 14:14:52 +0100 Subject: [PATCH] [IMP] owl: improve npm packaging closes #611 --- package.json | 8 ++++---- tsconfig.json | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 2b27e59b..a8020775 100644 --- a/package.json +++ b/package.json @@ -2,10 +2,10 @@ "name": "@odoo/owl", "version": "1.0.0-beta5", "description": "Odoo Web Library (OWL)", - "main": "dist/owl/index.js", - "types": "dist/owl/index.d.ts", - "prepublish": "npm run build", - "files": ["dist/owl/"], + "main": "dist/owl.js", + "types": "dist/types/index.d.ts", + "prepublish": "npm run buildcommonjs", + "files": ["dist/types/", "dist/owl.js"], "engines": { "node": ">=10.15.3" }, diff --git a/tsconfig.json b/tsconfig.json index eff00b34..03876f95 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,7 +13,8 @@ "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, "strictPropertyInitialization": true, - "strictNullChecks": true + "strictNullChecks": true, + "declarationDir": "dist/types" }, "include": ["src/**/*.ts","src/*.ts"] }