فهرست منبع

Fix integrity issue

Jason Grout 4 سال پیش
والد
کامیت
eb7b03997a
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 0
      builder/package.json
  2. 1 2
      builder/src/build-labextension.ts

+ 1 - 0
builder/package.json

@@ -74,6 +74,7 @@
     "@types/fs-extra": "^9.0.1",
     "@types/glob": "^7.1.1",
     "@types/node": "^14.6.1",
+    "@types/supports-color": "^5.3.0",
     "@types/webpack": "^4.41.0",
     "@types/which": "^1.3.2",
     "rimraf": "~3.0.0",

+ 1 - 2
builder/src/build-labextension.ts

@@ -45,6 +45,7 @@ import * as path from 'path';
 import commander from 'commander';
 import webpack from 'webpack';
 import generateConfig from './extensionConfig';
+import { stdout as colors } from 'supports-color';
 
 commander
   .description('Build an extension')
@@ -72,8 +73,6 @@ commander
     });
     const compiler = webpack(config);
 
-    let colors = require('supports-color').stdout;
-
     let lastHash: string | null = null;
 
     function compilerCallback(err: any, stats: any) {