From 39b802dead6a28e9de433f625595c78142923f7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BC=8D=E7=A8=8B=E5=87=AF?= Date: Wed, 11 Jul 2018 12:48:01 +0800 Subject: [PATCH] chore(build): set rollup exports with `named` --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 10afcc9..fcaa873 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,8 @@ "docs:lint": "documentation lint dist/src/**", "docs:deploy": "npm run docs && cp -r .circleci docs && gh-pages -d docs -t", "docs": "rm -rf docs/ dist/ && npm run dev && documentation build dist/src/** -f html -o docs", - "build": "rm -rf dist/ libs/ && tsc && bili --format cjs --filename '[name].js'", - "dev": "rm -rf dist/ && tsc", + "build": "npm run dev && bili --format cjs --filename '[name].js' --exports 'named'", + "dev": "rm -rf dist/ libs/ && tsc", "test:unit": "jest", "postversion": "npm run build && npm run docs:deploy", "postbuild": "cp dist/*.d.ts libs"