浏览代码

feat(build) don't build library on postinstall

Do it on the prepack step, so it gets built before we upload the build
artifact.
dev1
Saúl Ibarra Corretgé 3 年前
父节点
当前提交
17b116857d
共有 4 个文件被更改,包括 4 次插入2 次删除
  1. 1
    0
      .github/workflows/ci.yml
  2. 1
    0
      .gitignore
  3. 0
    1
      package-lock.json
  4. 2
    1
      package.json

+ 1
- 0
.github/workflows/ci.yml 查看文件

13
         node-version: '14.x'
13
         node-version: '14.x'
14
     - run: npm i -g npm@7
14
     - run: npm i -g npm@7
15
     - run: npm install
15
     - run: npm install
16
+    - run: npm run build
16
     - run: npm run lint
17
     - run: npm run lint
17
     - run: npm run test
18
     - run: npm run test

+ 1
- 0
.gitignore 查看文件

16
 dist
16
 dist
17
 types/types-comparer/auto.json
17
 types/types-comparer/auto.json
18
 types/types-comparer/hand-crafted.json
18
 types/types-comparer/hand-crafted.json
19
+*.tgz

+ 0
- 1
package-lock.json 查看文件

7
     "": {
7
     "": {
8
       "name": "lib-jitsi-meet",
8
       "name": "lib-jitsi-meet",
9
       "version": "0.0.0",
9
       "version": "0.0.0",
10
-      "hasInstallScript": true,
11
       "license": "Apache-2.0",
10
       "license": "Apache-2.0",
12
       "dependencies": {
11
       "dependencies": {
13
         "@jitsi/js-utils": "2.0.0",
12
         "@jitsi/js-utils": "2.0.0",

+ 2
- 1
package.json 查看文件

58
     "webpack-cli": "4.9.0"
58
     "webpack-cli": "4.9.0"
59
   },
59
   },
60
   "scripts": {
60
   "scripts": {
61
+    "build": "webpack && tsc",
61
     "lint": "eslint .",
62
     "lint": "eslint .",
62
     "lint-fix": "eslint . --fix",
63
     "lint-fix": "eslint . --fix",
63
-    "postinstall": "webpack && tsc",
64
+    "prepack": "npm run build",
64
     "test": "karma start karma.conf.js",
65
     "test": "karma start karma.conf.js",
65
     "test-watch": "karma start karma.conf.js --no-single-run",
66
     "test-watch": "karma start karma.conf.js --no-single-run",
66
     "validate": "npm ls",
67
     "validate": "npm ls",

正在加载...
取消
保存