Просмотр исходного кода

add build script to ui package

Yuki Takei 3 лет назад
Родитель
Сommit
4ffa851ac7
3 измененных файлов с 19 добавлено и 0 удалено
  1. 1 0
      packages/ui/.gitignore
  2. 2 0
      packages/ui/package.json
  3. 16 0
      packages/ui/tsconfig.build.esm.json

+ 1 - 0
packages/ui/.gitignore

@@ -0,0 +1 @@
+/dist

+ 2 - 0
packages/ui/package.json

@@ -11,6 +11,8 @@
     "dist"
   ],
   "scripts": {
+    "build": "run-p build:*",
+    "build:esm": "tsc -p tsconfig.build.esm.json && tsc-alias -p tsconfig.build.esm.json",
     "lint:js": "eslint **/*.{js,jsx,ts,tsx}",
     "lint": "npm-run-all -p lint:*",
     "test": "jest --verbose"

+ 16 - 0
packages/ui/tsconfig.build.esm.json

@@ -0,0 +1,16 @@
+{
+  "extends": "./tsconfig.base.json",
+  "compilerOptions": {
+    "rootDir": "./src",
+    "outDir": "dist/esm",
+    "declaration": true,
+    "noResolve": false,
+    "preserveConstEnums": true,
+    "sourceMap": false,
+    "noEmit": false,
+
+    "baseUrl": ".",
+    "paths": {
+    }
+  }
+}