@atlaspack/package-manager 2.14.5-canary.160 → 2.14.5-canary.161

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.
@@ -327,7 +327,6 @@ class NodePackageManager {
327
327
  }
328
328
  throw new (_diagnostic().default)({
329
329
  diagnostic: conflicts.fields.map(field => ({
330
- // @ts-expect-error TS2345
331
330
  message: (0, _diagnostic().md)`Could not find module "${name}", but it was listed in package.json. Run your package manager first.`,
332
331
  origin: '@atlaspack/package-manager',
333
332
  codeFrames: [{
@@ -361,7 +360,6 @@ class NodePackageManager {
361
360
  } else if (conflicts != null) {
362
361
  throw new (_diagnostic().default)({
363
362
  diagnostic: {
364
- // @ts-expect-error TS2345
365
363
  message: (0, _diagnostic().md)`Could not find module "${name}" satisfying ${range}.`,
366
364
  origin: '@atlaspack/package-manager',
367
365
  codeFrames: [{
@@ -378,10 +376,8 @@ class NodePackageManager {
378
376
  });
379
377
  }
380
378
  let version = pkg === null || pkg === void 0 ? void 0 : pkg.version;
381
- // @ts-expect-error TS2345
382
379
  let message = (0, _diagnostic().md)`Could not resolve package "${name}" that satisfies ${range}.`;
383
380
  if (version != null) {
384
- // @ts-expect-error TS2345
385
381
  message += (0, _diagnostic().md)` Found ${version}.`;
386
382
  }
387
383
  throw new (_diagnostic().default)({
@@ -489,7 +485,6 @@ class NodePackageManager {
489
485
  res.invalidateOnStartup ||= invalidations.invalidateOnStartup;
490
486
  if (res.invalidateOnStartup) {
491
487
  _logger().default.warn({
492
- // @ts-expect-error TS2345
493
488
  message: (0, _diagnostic().md)`${_path().default.relative(this.projectRoot, resolved.resolved)} contains non-statically analyzable dependencies in its module graph. This causes Parcel to invalidate the cache on startup.`,
494
489
  origin: '@atlaspack/package-manager'
495
490
  });
@@ -116,7 +116,6 @@ async function installPeerDependencies(fs, packageManager, module, from, project
116
116
  if (!_semver().default.satisfies(pkg.version, range)) {
117
117
  throw new (_diagnostic().default)({
118
118
  diagnostic: {
119
- // @ts-expect-error TS2345
120
119
  message: (0, _diagnostic().md)`Could not install the peer dependency "${name}" for "${module.name}", installed version ${pkg.version} is incompatible with ${range}`,
121
120
  origin: '@atlaspack/package-manager',
122
121
  codeFrames: [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/package-manager",
3
- "version": "2.14.5-canary.160+4be63eda8",
3
+ "version": "2.14.5-canary.161+ee040bb64",
4
4
  "description": "Blazing fast, zero configuration web application bundler",
5
5
  "license": "(MIT OR Apache-2.0)",
6
6
  "publishConfig": {
@@ -39,14 +39,14 @@
39
39
  }
40
40
  },
41
41
  "dependencies": {
42
- "@atlaspack/build-cache": "2.13.3-canary.228+4be63eda8",
43
- "@atlaspack/diagnostic": "2.14.1-canary.228+4be63eda8",
44
- "@atlaspack/fs": "2.14.5-canary.160+4be63eda8",
45
- "@atlaspack/logger": "2.14.5-canary.160+4be63eda8",
46
- "@atlaspack/node-resolver-core": "3.5.5-canary.160+4be63eda8",
47
- "@atlaspack/types": "2.14.5-canary.160+4be63eda8",
48
- "@atlaspack/utils": "2.14.5-canary.160+4be63eda8",
49
- "@atlaspack/workers": "2.14.5-canary.160+4be63eda8",
42
+ "@atlaspack/build-cache": "2.13.3-canary.229+ee040bb64",
43
+ "@atlaspack/diagnostic": "2.14.1-canary.229+ee040bb64",
44
+ "@atlaspack/fs": "2.14.5-canary.161+ee040bb64",
45
+ "@atlaspack/logger": "2.14.5-canary.161+ee040bb64",
46
+ "@atlaspack/node-resolver-core": "3.5.5-canary.161+ee040bb64",
47
+ "@atlaspack/types": "2.14.5-canary.161+ee040bb64",
48
+ "@atlaspack/utils": "2.14.5-canary.161+ee040bb64",
49
+ "@atlaspack/workers": "2.14.5-canary.161+ee040bb64",
50
50
  "@swc/core": "^1.10.0",
51
51
  "command-exists": "^1.2.6",
52
52
  "cross-spawn": "^6.0.4",
@@ -61,5 +61,5 @@
61
61
  "./src/Yarn.js": false
62
62
  },
63
63
  "type": "commonjs",
64
- "gitHead": "4be63eda8e561c18803bf04681fe1d61b7eaae93"
64
+ "gitHead": "ee040bb6428f29b57d892ddd8107e29077d08ffd"
65
65
  }
@@ -322,7 +322,6 @@ export class NodePackageManager implements PackageManager {
322
322
 
323
323
  throw new ThrowableDiagnostic({
324
324
  diagnostic: conflicts.fields.map((field) => ({
325
- // @ts-expect-error TS2345
326
325
  message: md`Could not find module "${name}", but it was listed in package.json. Run your package manager first.`,
327
326
  origin: '@atlaspack/package-manager',
328
327
  codeFrames: [
@@ -364,7 +363,6 @@ export class NodePackageManager implements PackageManager {
364
363
  } else if (conflicts != null) {
365
364
  throw new ThrowableDiagnostic({
366
365
  diagnostic: {
367
- // @ts-expect-error TS2345
368
366
  message: md`Could not find module "${name}" satisfying ${range}.`,
369
367
  origin: '@atlaspack/package-manager',
370
368
  codeFrames: [
@@ -387,10 +385,8 @@ export class NodePackageManager implements PackageManager {
387
385
  }
388
386
 
389
387
  let version = pkg?.version;
390
- // @ts-expect-error TS2345
391
388
  let message = md`Could not resolve package "${name}" that satisfies ${range}.`;
392
389
  if (version != null) {
393
- // @ts-expect-error TS2345
394
390
  message += md` Found ${version}.`;
395
391
  }
396
392
 
@@ -530,7 +526,6 @@ export class NodePackageManager implements PackageManager {
530
526
  res.invalidateOnStartup ||= invalidations.invalidateOnStartup;
531
527
  if (res.invalidateOnStartup) {
532
528
  logger.warn({
533
- // @ts-expect-error TS2345
534
529
  message: md`${path.relative(
535
530
  this.projectRoot,
536
531
  resolved.resolved,
@@ -110,7 +110,6 @@ async function installPeerDependencies(
110
110
  if (!semver.satisfies(pkg.version, range)) {
111
111
  throw new ThrowableDiagnostic({
112
112
  diagnostic: {
113
- // @ts-expect-error TS2345
114
113
  message: md`Could not install the peer dependency "${name}" for "${module.name}", installed version ${pkg.version} is incompatible with ${range}`,
115
114
  origin: '@atlaspack/package-manager',
116
115
  codeFrames: [