@loopback/build 9.0.9 → 9.0.10
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 +14 -0
- package/bin/compile-package.js +3 -3
- package/bin/run-clean.js +3 -3
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
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
|
+
## [9.0.10](https://github.com/loopbackio/loopback-next/compare/@loopback/build@9.0.9...@loopback/build@9.0.10) (2023-04-13)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* refresh package lock files ([9979eb1](https://github.com/loopbackio/loopback-next/commit/9979eb183b6c6cd5775da7478cdede8a92ce0d5e)), closes [#9351](https://github.com/loopbackio/loopback-next/issues/9351)
|
|
12
|
+
* rimraf must be configured to accept patterns ([8ba04ab](https://github.com/loopbackio/loopback-next/commit/8ba04ab253de976a8703badc4e99520f15335cba))
|
|
13
|
+
* use glob named import ([7daf6fb](https://github.com/loopbackio/loopback-next/commit/7daf6fb6b82e2ce01e3693869c695fe77146238d))
|
|
14
|
+
* use rimraf named import ([1417f7b](https://github.com/loopbackio/loopback-next/commit/1417f7b504ec85b5c13fb65851430f3c364761e2))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
6
20
|
## [9.0.9](https://github.com/loopbackio/loopback-next/compare/@loopback/build@9.0.8...@loopback/build@9.0.9) (2023-03-09)
|
|
7
21
|
|
|
8
22
|
**Note:** Version bump only for package @loopback/build
|
package/bin/compile-package.js
CHANGED
|
@@ -21,9 +21,9 @@ const debug = require('debug')('loopback:build');
|
|
|
21
21
|
const utils = require('./utils');
|
|
22
22
|
const path = require('path');
|
|
23
23
|
const fs = require('fs');
|
|
24
|
-
const
|
|
24
|
+
const {globSync} = require('glob');
|
|
25
25
|
const fse = require('fs-extra');
|
|
26
|
-
const buildOptions = require('typescript')
|
|
26
|
+
const {buildOpts: buildOptions} = require('typescript');
|
|
27
27
|
|
|
28
28
|
function run(argv, options) {
|
|
29
29
|
if (options === true) {
|
|
@@ -265,7 +265,7 @@ function copyResources(rootDir, packageDir, tsConfigFile, outDir, options) {
|
|
|
265
265
|
(tsConfig.compilerOptions && tsConfig.compilerOptions.rootDir) || '';
|
|
266
266
|
|
|
267
267
|
const pattern = `@(${dirs})/**/!(*.ts)`;
|
|
268
|
-
const files =
|
|
268
|
+
const files = globSync(pattern, {root: packageDir, nodir: true});
|
|
269
269
|
for (const file of files) {
|
|
270
270
|
/**
|
|
271
271
|
* Trim path that matches tsConfig.compilerOptions.rootDir
|
package/bin/run-clean.js
CHANGED
|
@@ -22,10 +22,10 @@ Example usage:
|
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
24
|
'use strict';
|
|
25
|
+
const {rimrafSync} = require('rimraf');
|
|
26
|
+
const path = require('path');
|
|
25
27
|
|
|
26
28
|
function run(argv, options) {
|
|
27
|
-
const rimraf = require('rimraf');
|
|
28
|
-
const path = require('path');
|
|
29
29
|
const globPatterns = argv.slice(2);
|
|
30
30
|
const removed = [];
|
|
31
31
|
if (!globPatterns.length) {
|
|
@@ -46,7 +46,7 @@ function run(argv, options) {
|
|
|
46
46
|
);
|
|
47
47
|
}
|
|
48
48
|
} else {
|
|
49
|
-
if (!options.dryRun)
|
|
49
|
+
if (!options.dryRun) rimrafSync(pattern, {glob: true});
|
|
50
50
|
removed.push(pattern);
|
|
51
51
|
}
|
|
52
52
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loopback/build",
|
|
3
3
|
"description": "A set of common scripts and default configurations to build LoopBack 4 or other TypeScript modules",
|
|
4
|
-
"version": "9.0.
|
|
4
|
+
"version": "9.0.10",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
7
7
|
"lb-tsc": "./bin/compile-package.js",
|
|
@@ -31,21 +31,21 @@
|
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@loopback/eslint-config": "^13.0.
|
|
34
|
+
"@loopback/eslint-config": "^13.0.10",
|
|
35
35
|
"@types/mocha": "^10.0.1",
|
|
36
|
-
"@types/node": "^14.18.
|
|
36
|
+
"@types/node": "^14.18.42",
|
|
37
37
|
"cross-spawn": "^7.0.3",
|
|
38
38
|
"debug": "^4.3.4",
|
|
39
|
-
"eslint": "^8.
|
|
40
|
-
"fs-extra": "^
|
|
41
|
-
"glob": "^
|
|
39
|
+
"eslint": "^8.38.0",
|
|
40
|
+
"fs-extra": "^11.1.1",
|
|
41
|
+
"glob": "^10.0.0",
|
|
42
42
|
"lodash": "^4.17.21",
|
|
43
43
|
"mocha": "^10.2.0",
|
|
44
44
|
"nyc": "^15.1.0",
|
|
45
|
-
"prettier": "^2.8.
|
|
46
|
-
"rimraf": "^
|
|
45
|
+
"prettier": "^2.8.7",
|
|
46
|
+
"rimraf": "^5.0.0",
|
|
47
47
|
"source-map-support": "^0.5.21",
|
|
48
|
-
"typescript": "~4.9.
|
|
48
|
+
"typescript": "~4.9.5"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "3a98ded2622420d0f09dbc3c0fe961c0234b097f"
|
|
51
51
|
}
|