@loopback/build 5.3.1 → 5.4.3

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,46 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.4.3](https://github.com/strongloop/loopback-next/compare/@loopback/build@5.4.2...@loopback/build@5.4.3) (2020-06-11)
7
+
8
+ **Note:** Version bump only for package @loopback/build
9
+
10
+
11
+
12
+
13
+
14
+ ## [5.4.2](https://github.com/strongloop/loopback-next/compare/@loopback/build@5.4.1...@loopback/build@5.4.2) (2020-05-28)
15
+
16
+ **Note:** Version bump only for package @loopback/build
17
+
18
+
19
+
20
+
21
+
22
+ ## [5.4.1](https://github.com/strongloop/loopback-next/compare/@loopback/build@5.4.0...@loopback/build@5.4.1) (2020-05-20)
23
+
24
+ **Note:** Version bump only for package @loopback/build
25
+
26
+
27
+
28
+
29
+
30
+ # [5.4.0](https://github.com/strongloop/loopback-next/compare/@loopback/build@5.3.1...@loopback/build@5.4.0) (2020-05-19)
31
+
32
+
33
+ ### Bug Fixes
34
+
35
+ * **build:** recognize `lb-tsc` bool options with a value ([015df04](https://github.com/strongloop/loopback-next/commit/015df04cf2df3455b5eb8582e6097406ee00e58a))
36
+
37
+
38
+ ### Features
39
+
40
+ * upgrade to TypeScript 3.9.x ([3300e45](https://github.com/strongloop/loopback-next/commit/3300e4569ab8410bb1285f7a54d326e9d976476d))
41
+
42
+
43
+
44
+
45
+
6
46
  ## [5.3.1](https://github.com/strongloop/loopback-next/compare/@loopback/build@5.3.0...@loopback/build@5.3.1) (2020-05-07)
7
47
 
8
48
  **Note:** Version bump only for package @loopback/build
@@ -164,8 +164,10 @@ function validArgsForBuild(args) {
164
164
  });
165
165
  let validArgs = args;
166
166
  if (args.includes('-b') || args.includes('--build')) {
167
- validArgs = filterArgs(args, arg => {
168
- if (validBooleanOptions.includes(arg)) return 1;
167
+ validArgs = filterArgs(args, (arg, next) => {
168
+ if (validBooleanOptions.includes(arg)) {
169
+ return next === 'false' || next === 'true' ? 2 : 1;
170
+ }
169
171
  if (validValueOptions.includes(arg)) return 2;
170
172
  return 0;
171
173
  });
@@ -185,7 +187,7 @@ function filterArgs(args, filter) {
185
187
  const validArgs = [];
186
188
  let i = 0;
187
189
  while (i < args.length) {
188
- const length = filter(args[i]);
190
+ const length = filter(args[i], args[i + 1]);
189
191
  if (length === 0) {
190
192
  i++;
191
193
  } else if (length === 1) {
package/package.json CHANGED
@@ -1,51 +1,49 @@
1
1
  {
2
- "name": "@loopback/build",
3
- "description": "Build scripts and configuration files for LoopBack 4 modules",
4
- "repository": {
5
- "type": "git",
6
- "url": "https://github.com/strongloop/loopback-next.git",
7
- "directory": "packages/build"
8
- },
9
- "version": "5.3.1",
10
- "engines": {
11
- "node": ">=10"
12
- },
13
- "author": "IBM Corp.",
14
- "main": "index.js",
15
- "copyright.owner": "IBM Corp.",
16
- "license": "MIT",
17
- "dependencies": {
18
- "@loopback/eslint-config": "^6.0.6",
19
- "@types/mocha": "^7.0.2",
20
- "@types/node": "^10.17.21",
21
- "@typescript-eslint/eslint-plugin": "^2.31.0",
22
- "@typescript-eslint/parser": "^2.31.0",
23
- "cross-spawn": "^7.0.2",
24
- "debug": "^4.1.1",
25
- "eslint": "^6.8.0",
26
- "eslint-config-prettier": "^6.11.0",
27
- "eslint-plugin-eslint-plugin": "^2.2.1",
28
- "eslint-plugin-mocha": "^6.3.0",
29
- "fs-extra": "^9.0.0",
30
- "glob": "^7.1.6",
31
- "mocha": "^7.1.2",
32
- "nyc": "^15.0.1",
33
- "prettier": "^2.0.5",
34
- "rimraf": "^3.0.2",
35
- "source-map-support": "^0.5.19",
36
- "typescript": "~3.8.3"
37
- },
38
- "bin": {
39
- "lb-tsc": "./bin/compile-package.js",
40
- "lb-eslint": "./bin/run-eslint.js",
41
- "lb-prettier": "./bin/run-prettier.js",
42
- "lb-mocha": "./bin/run-mocha.js",
43
- "lb-nyc": "./bin/run-nyc.js",
44
- "lb-clean": "./bin/run-clean.js"
45
- },
46
- "scripts": {
47
- "test": "npm run mocha",
48
- "mocha": "node bin/run-mocha --timeout 30000 \"test/integration/*.js\" \"test/unit/*.js\""
49
- },
50
- "gitHead": "50c3f06d942f8bae8f0c32a3775ff98a7498e4fd"
2
+ "name": "@loopback/build",
3
+ "description": "A set of common scripts and default configurations to build LoopBack 4 or other TypeScript modules",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://github.com/strongloop/loopback-next.git",
7
+ "directory": "packages/build"
8
+ },
9
+ "version": "5.4.3",
10
+ "engines": {
11
+ "node": ">=10"
12
+ },
13
+ "main": "index.js",
14
+ "author": "IBM Corp.",
15
+ "copyright.owner": "IBM Corp.",
16
+ "license": "MIT",
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
20
+ "dependencies": {
21
+ "@loopback/eslint-config": "^8.0.1",
22
+ "@types/mocha": "^7.0.2",
23
+ "@types/node": "^10.17.26",
24
+ "cross-spawn": "^7.0.3",
25
+ "debug": "^4.1.1",
26
+ "eslint": "^7.2.0",
27
+ "fs-extra": "^9.0.1",
28
+ "glob": "^7.1.6",
29
+ "mocha": "^8.0.1",
30
+ "nyc": "^15.1.0",
31
+ "prettier": "^2.0.5",
32
+ "rimraf": "^3.0.2",
33
+ "source-map-support": "^0.5.19",
34
+ "typescript": "~3.9.5"
35
+ },
36
+ "bin": {
37
+ "lb-tsc": "./bin/compile-package.js",
38
+ "lb-eslint": "./bin/run-eslint.js",
39
+ "lb-prettier": "./bin/run-prettier.js",
40
+ "lb-mocha": "./bin/run-mocha.js",
41
+ "lb-nyc": "./bin/run-nyc.js",
42
+ "lb-clean": "./bin/run-clean.js"
43
+ },
44
+ "scripts": {
45
+ "test": "npm run mocha",
46
+ "mocha": "node bin/run-mocha --timeout 30000 \"test/integration/*.js\" \"test/unit/*.js\""
47
+ },
48
+ "gitHead": "f31b7e6de5a405a015cdd774f63d699b35d943cc"
51
49
  }
@@ -10,8 +10,7 @@ const path = require('path');
10
10
  const fs = require('fs-extra');
11
11
  const utils = require('../../bin/utils');
12
12
 
13
- describe('build', function () {
14
- // eslint-disable-next-line no-invalid-this
13
+ describe('build', /** @this {Mocha.Suite} */ function () {
15
14
  this.timeout(30000);
16
15
  const cwd = process.cwd();
17
16
  const projectDir = path.resolve(__dirname, './fixtures');
@@ -243,8 +242,7 @@ describe('build', function () {
243
242
  });
244
243
  });
245
244
 
246
- describe('mocha', function () {
247
- // eslint-disable-next-line no-invalid-this
245
+ describe('mocha', /** @this {Mocha.Suite} */ function () {
248
246
  this.timeout(30000);
249
247
  const cwd = process.cwd();
250
248
  const projectDir = path.resolve(__dirname, './fixtures');