Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nestjs/nest-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 10.4.2
Choose a base ref
...
head repository: nestjs/nest-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2864899fba2f93bacccd883e305ac9c74456f0b9
Choose a head ref

Commits on Jul 5, 2024

  1. Copy the full SHA
    dc9f39d View commit details

Commits on Jul 6, 2024

  1. Copy the full SHA
    d26058a View commit details
  2. Copy the full SHA
    b8fcf49 View commit details

Commits on Jul 8, 2024

  1. Copy the full SHA
    469a24f View commit details
  2. Copy the full SHA
    fa5f68d View commit details
  3. Copy the full SHA
    716638e View commit details

Commits on Jul 9, 2024

  1. Copy the full SHA
    657178d View commit details

Commits on Jul 10, 2024

  1. Copy the full SHA
    e1e2c19 View commit details
  2. Copy the full SHA
    a628afe View commit details

Commits on Jul 11, 2024

  1. Copy the full SHA
    5433e50 View commit details

Commits on Jul 13, 2024

  1. Copy the full SHA
    db27139 View commit details

Commits on Jul 14, 2024

  1. Copy the full SHA
    60fe4c8 View commit details

Commits on Jul 15, 2024

  1. Copy the full SHA
    d561146 View commit details

Commits on Jul 17, 2024

  1. Copy the full SHA
    bea1af0 View commit details
  2. Copy the full SHA
    6663e6f View commit details

Commits on Jul 18, 2024

  1. Copy the full SHA
    13ad44d View commit details
  2. Copy the full SHA
    6b32a85 View commit details
  3. Copy the full SHA
    6b81d67 View commit details

Commits on Jul 22, 2024

  1. Copy the full SHA
    0117a1d View commit details

Commits on Jul 23, 2024

  1. Copy the full SHA
    0ac320c View commit details

Commits on Jul 24, 2024

  1. Copy the full SHA
    1b93deb View commit details

Commits on Jul 25, 2024

  1. Copy the full SHA
    aa13521 View commit details
  2. Copy the full SHA
    f30661a View commit details

Commits on Jul 26, 2024

  1. Copy the full SHA
    f8bc48d View commit details

Commits on Jul 28, 2024

  1. Copy the full SHA
    46cb313 View commit details
  2. Copy the full SHA
    902c155 View commit details

Commits on Jul 29, 2024

  1. Copy the full SHA
    9a71f09 View commit details
  2. Copy the full SHA
    039ba07 View commit details

Commits on Jul 31, 2024

  1. Copy the full SHA
    8416f33 View commit details

Commits on Aug 5, 2024

  1. Copy the full SHA
    5e74583 View commit details
  2. Copy the full SHA
    c0800ff View commit details

Commits on Aug 6, 2024

  1. Copy the full SHA
    1535c58 View commit details
  2. Copy the full SHA
    9c850f1 View commit details
  3. Copy the full SHA
    3795d2a View commit details
  4. Copy the full SHA
    2660990 View commit details

Commits on Aug 7, 2024

  1. Copy the full SHA
    6ebb6e5 View commit details

Commits on Aug 9, 2024

  1. Copy the full SHA
    793f319 View commit details
  2. Merge pull request #2681 from jaunusa/bugfix/copyPathDepth

    fix: allow resolving copy paths for files in project root folder
    kamilmysliwiec authored Aug 9, 2024
    Copy the full SHA
    f2b3d7e View commit details
  3. Merge pull request #2647 from nestjs/renovate/webpack-5.x

    fix(deps): update dependency webpack to v5.93.0
    kamilmysliwiec authored Aug 9, 2024
    Copy the full SHA
    2864899 View commit details
Showing with 886 additions and 827 deletions.
  1. +12 −3 lib/compiler/assets-manager.ts
  2. +2 −2 lib/compiler/helpers/copy-path-resolve.ts
  3. +859 −809 package-lock.json
  4. +13 −13 package.json
15 changes: 12 additions & 3 deletions lib/compiler/assets-manager.ts
Original file line number Diff line number Diff line change
@@ -103,9 +103,18 @@ export class AssetsManager {

this.watchers.push(watcher);
} else {
const files = sync(item.glob, { ignore: item.exclude }).filter(
(matched) => statSync(matched).isFile(),
);
const matchedPaths = sync(item.glob, { ignore: item.exclude });
const files = item.glob.endsWith('*')
? matchedPaths.filter((matched) => statSync(matched).isFile())
: matchedPaths.flatMap((matched) => {
if (statSync(matched).isDirectory()) {
return sync(`${matched}/**/*`, {
ignore: item.exclude,
}).filter((file) => statSync(file).isFile());
}
return matched;
});

for (const path of files) {
this.actionOnFile({ ...option, path, action: 'change' });
}
4 changes: 2 additions & 2 deletions lib/compiler/helpers/copy-path-resolve.ts
Original file line number Diff line number Diff line change
@@ -15,8 +15,8 @@ function dealWith(inPath: string, up: number) {
return inPath;
}

if (depth(inPath) < up) {
throw new Error('cant go up that far');
if (depth(inPath) < up - 1) {
throw new Error('Path outside of project folder is not allowed');
}

return path.join(...path.normalize(inPath).split(path.sep).slice(up));
Loading