lincd-cli 0.2.58 → 0.2.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -753,10 +753,25 @@ exports.checkImports = checkImports;
753
753
  const depCheck = () => __awaiter(void 0, void 0, void 0, function* () {
754
754
  (0, depcheck_1.default)(process.cwd(), {}, (results) => {
755
755
  if (results.missing) {
756
+ let lincdPackages = getLocalLincdModules();
756
757
  let missing = Object.keys(results.missing);
758
+ //filter out missing types, if it builds we're not too concerned about that at the moment?
759
+ //especially things like @types/react, @types/react-dom, @types/node (they are added elsewhere?)
760
+ // missing = missing.filter(m => m.indexOf('@types/') === 0);
757
761
  //currently react is not an explicit dependency, but we should add it as a peer dependency
758
- missing.splice(missing.indexOf('react'));
759
- if (missing.length > 0) {
762
+ missing.splice(missing.indexOf('react'), 1);
763
+ let missingLincdPackages = missing.filter((missingDep) => {
764
+ return lincdPackages.some((lincdPackage) => {
765
+ return lincdPackage.packageName === missingDep;
766
+ });
767
+ });
768
+ //currently just missing LINCD packages cause a hard failure exit code
769
+ if (missingLincdPackages.length > 0) {
770
+ console.warn(chalk_1.default.red('\nThese LINCD packages are imported but they are not listed in package.json:\n- ' +
771
+ missingLincdPackages.join(',\n- ')));
772
+ process.exit(1);
773
+ }
774
+ else if (missing.length > 0) {
760
775
  console.warn(chalk_1.default.red('Missing dependencies:\n\t' + missing.join(',\n\t')));
761
776
  }
762
777
  }
@@ -88,7 +88,7 @@ function setupGrunt(grunt, moduleName, config) {
88
88
  // buildFrontend ? 'webpack:build-es6' : null,
89
89
  buildServer
90
90
  ? [
91
- 'clean:lib',
91
+ // 'clean:lib',
92
92
  'exec:build-lib',
93
93
  'copy:lib',
94
94
  'exec:depcheck',
@@ -157,7 +157,7 @@ function setupGrunt(grunt, moduleName, config) {
157
157
  ].filter(Boolean),
158
158
  }),
159
159
  ],
160
- // writeDest: false,
160
+ writeDest: false,
161
161
  },
162
162
  cssjson: {
163
163
  src: 'src/**/*.scss',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lincd-cli",
3
- "version": "0.2.58",
3
+ "version": "0.2.59",
4
4
  "description": "Command line tools for the lincd.js library",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {