@atls/code-schematics 0.0.20 → 1.0.0

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/dist/index.d.ts CHANGED
@@ -1,2 +1 @@
1
- export * from './schematics';
2
- //# sourceMappingURL=index.d.ts.map
1
+ export * from './schematics.js';
package/dist/index.js CHANGED
@@ -1,18 +1 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./schematics"), exports);
18
- //# sourceMappingURL=index.js.map
1
+ export * from "./schematics.js";
@@ -1,5 +1,4 @@
1
- import { NodePnpEngineHost } from './node-pnp-engine.host';
1
+ import { NodePnpEngineHost } from './node-pnp-engine.host.js';
2
2
  export declare class MigrationEngineHost extends NodePnpEngineHost {
3
3
  protected _resolveCollectionPath(name: string): string;
4
4
  }
5
- //# sourceMappingURL=migration-engine.host.d.ts.map
@@ -1,11 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MigrationEngineHost = void 0;
4
- const node_pnp_engine_host_1 = require("./node-pnp-engine.host");
5
- class MigrationEngineHost extends node_pnp_engine_host_1.NodePnpEngineHost {
1
+ import { NodePnpEngineHost } from './node-pnp-engine.host.js';
2
+ export class MigrationEngineHost extends NodePnpEngineHost {
6
3
  _resolveCollectionPath(name) {
7
4
  return name;
8
5
  }
9
6
  }
10
- exports.MigrationEngineHost = MigrationEngineHost;
11
- //# sourceMappingURL=migration-engine.host.js.map
@@ -1,6 +1,6 @@
1
+ import type { FileSystemSchematicDesc } from '@angular-devkit/schematics/tools';
1
2
  import { RuleFactory } from '@angular-devkit/schematics/';
2
3
  import { FileSystemCollectionDesc } from '@angular-devkit/schematics/tools';
3
- import { FileSystemSchematicDesc } from '@angular-devkit/schematics/tools';
4
4
  import { FileSystemEngineHostBase } from '@angular-devkit/schematics/tools';
5
5
  export declare class NodePnpEngineHost extends FileSystemEngineHostBase {
6
6
  private readonly paths?;
@@ -14,4 +14,3 @@ export declare class NodePnpEngineHost extends FileSystemEngineHostBase {
14
14
  protected _transformCollectionDescription(name: string, desc: Partial<FileSystemCollectionDesc>): FileSystemCollectionDesc;
15
15
  protected _transformSchematicDescription(name: string, _collection: FileSystemCollectionDesc, desc: Partial<FileSystemSchematicDesc>): FileSystemSchematicDesc;
16
16
  }
17
- //# sourceMappingURL=node-pnp-engine.host.d.ts.map
@@ -1,18 +1,14 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NodePnpEngineHost = void 0;
4
- const node_path_1 = require("node:path");
5
- const node_path_2 = require("node:path");
6
- const node_path_3 = require("node:path");
7
- const tools_1 = require("@angular-devkit/schematics/tools");
8
- const tools_2 = require("@angular-devkit/schematics/tools");
9
- const tools_3 = require("@angular-devkit/schematics/tools");
10
- const tools_4 = require("@angular-devkit/schematics/tools");
11
- const tools_5 = require("@angular-devkit/schematics/tools");
12
- const tools_6 = require("@angular-devkit/schematics/tools");
13
- const file_system_utility_1 = require("@angular-devkit/schematics/tools/file-system-utility");
14
- class NodePnpEngineHost extends tools_4.FileSystemEngineHostBase {
15
- paths;
1
+ import { dirname } from 'node:path';
2
+ import { join } from 'node:path';
3
+ import { resolve } from 'node:path';
4
+ import { ExportStringRef } from '@angular-devkit/schematics/tools';
5
+ import { CollectionCannotBeResolvedException } from '@angular-devkit/schematics/tools';
6
+ import { CollectionMissingSchematicsMapException } from '@angular-devkit/schematics/tools';
7
+ import { FileSystemEngineHostBase } from '@angular-devkit/schematics/tools';
8
+ import { SchematicMissingFieldsException } from '@angular-devkit/schematics/tools';
9
+ import { NodePackageDoesNotSupportSchematics } from '@angular-devkit/schematics/tools';
10
+ import { readJsonFile } from '@angular-devkit/schematics/tools/file-system-utility';
11
+ export class NodePnpEngineHost extends FileSystemEngineHostBase {
16
12
  constructor(paths) {
17
13
  super();
18
14
  this.paths = paths;
@@ -27,19 +23,19 @@ class NodePnpEngineHost extends tools_4.FileSystemEngineHostBase {
27
23
  references.add(requester);
28
24
  }
29
25
  }
30
- const relativeBase = requester ? (0, node_path_1.dirname)(requester) : process.cwd();
26
+ const relativeBase = requester ? dirname(requester) : process.cwd();
31
27
  let collectionPath;
32
28
  if (name.startsWith('.')) {
33
- name = (0, node_path_3.resolve)(relativeBase, name);
29
+ name = resolve(relativeBase, name);
34
30
  }
35
31
  const resolveOptions = {
36
- paths: (requester ? [(0, node_path_1.dirname)(requester), ...(this.paths || [])] : this.paths)?.filter(Boolean),
32
+ paths: (requester ? [dirname(requester), ...(this.paths || [])] : this.paths)?.filter(Boolean),
37
33
  };
38
34
  try {
39
- const packageJsonPath = require.resolve((0, node_path_2.join)(name, 'package.json'), resolveOptions);
35
+ const packageJsonPath = require.resolve(join(name, 'package.json'), resolveOptions);
40
36
  const { schematics } = require(packageJsonPath);
41
37
  if (!schematics || typeof schematics !== 'string') {
42
- throw new tools_6.NodePackageDoesNotSupportSchematics(name);
38
+ throw new NodePackageDoesNotSupportSchematics(name);
43
39
  }
44
40
  collectionPath = this.resolve(schematics, packageJsonPath, references);
45
41
  }
@@ -59,17 +55,17 @@ class NodePnpEngineHost extends tools_4.FileSystemEngineHostBase {
59
55
  }
60
56
  }
61
57
  if (!collectionPath) {
62
- throw new tools_2.CollectionCannotBeResolvedException(name);
58
+ throw new CollectionCannotBeResolvedException(name);
63
59
  }
64
60
  return collectionPath;
65
61
  }
66
62
  _resolveCollectionPath(name, requester) {
67
63
  const collectionPath = this.resolve(name, requester);
68
- (0, file_system_utility_1.readJsonFile)(collectionPath);
64
+ readJsonFile(collectionPath);
69
65
  return collectionPath;
70
66
  }
71
67
  _resolveReferenceString(refString, parentPath) {
72
- const ref = new tools_1.ExportStringRef(refString, parentPath);
68
+ const ref = new ExportStringRef(refString, parentPath);
73
69
  if (!ref.ref) {
74
70
  return null;
75
71
  }
@@ -77,7 +73,7 @@ class NodePnpEngineHost extends tools_4.FileSystemEngineHostBase {
77
73
  }
78
74
  _transformCollectionDescription(name, desc) {
79
75
  if (!desc.schematics || typeof desc.schematics !== 'object') {
80
- throw new tools_3.CollectionMissingSchematicsMapException(name);
76
+ throw new CollectionMissingSchematicsMapException(name);
81
77
  }
82
78
  return {
83
79
  ...desc,
@@ -86,10 +82,8 @@ class NodePnpEngineHost extends tools_4.FileSystemEngineHostBase {
86
82
  }
87
83
  _transformSchematicDescription(name, _collection, desc) {
88
84
  if (!desc.factoryFn || !desc.path || !desc.description) {
89
- throw new tools_5.SchematicMissingFieldsException(name);
85
+ throw new SchematicMissingFieldsException(name);
90
86
  }
91
87
  return desc;
92
88
  }
93
89
  }
94
- exports.NodePnpEngineHost = NodePnpEngineHost;
95
- //# sourceMappingURL=node-pnp-engine.host.js.map
@@ -7,4 +7,3 @@ export declare class Schematics {
7
7
  init(schematic: string, options?: {}): Promise<DryRunEvent[]>;
8
8
  migrate(schematicName: string, migrationVersion: string, options?: {}): Promise<DryRunEvent[]>;
9
9
  }
10
- //# sourceMappingURL=schematics.d.ts.map
@@ -1,35 +1,29 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Schematics = void 0;
4
- const node_path_1 = require("node:path");
5
- const node_path_2 = require("node:path");
6
- const node_1 = require("@angular-devkit/core/node");
7
- const tools_1 = require("@angular-devkit/schematics/tools");
8
- const core_1 = require("@angular-devkit/core");
9
- const rxjs_1 = require("rxjs");
10
- const migration_engine_host_1 = require("./migration-engine.host");
11
- const node_pnp_engine_host_1 = require("./node-pnp-engine.host");
12
- const utils_1 = require("./utils");
13
- const utils_2 = require("./utils");
14
- class Schematics {
15
- cwd;
16
- force;
17
- dryRun;
1
+ import { dirname } from 'node:path';
2
+ import { join } from 'node:path';
3
+ import { NodeJsSyncHost } from '@angular-devkit/core/node';
4
+ import { NodeWorkflow } from '@angular-devkit/schematics/tools';
5
+ import { virtualFs } from '@angular-devkit/core';
6
+ import { lastValueFrom } from 'rxjs';
7
+ import { MigrationEngineHost } from './migration-engine.host.js';
8
+ import { NodePnpEngineHost } from './node-pnp-engine.host.js';
9
+ import { expandCollections } from './utils/index.js';
10
+ import { resolveSchematics } from './utils/index.js';
11
+ export class Schematics {
18
12
  constructor(cwd, force = false, dryRun = false) {
19
13
  this.cwd = cwd;
20
14
  this.force = force;
21
15
  this.dryRun = dryRun;
22
16
  }
23
17
  async init(schematic, options = {}) {
24
- const host = new core_1.virtualFs.ScopedHost(new node_1.NodeJsSyncHost(), this.cwd);
25
- const workflow = new tools_1.NodeWorkflow(host, {
18
+ const host = new virtualFs.ScopedHost(new NodeJsSyncHost(), this.cwd);
19
+ const workflow = new NodeWorkflow(host, {
26
20
  force: this.force,
27
21
  dryRun: this.dryRun,
28
22
  resolvePaths: [this.cwd],
29
23
  schemaValidation: true,
30
- engineHostCreator: ({ resolvePaths }) => new node_pnp_engine_host_1.NodePnpEngineHost(resolvePaths),
24
+ engineHostCreator: ({ resolvePaths }) => new NodePnpEngineHost(resolvePaths),
31
25
  });
32
- const collection = (0, utils_2.resolveSchematics)(this.cwd);
26
+ const collection = resolveSchematics(this.cwd);
33
27
  const events = [];
34
28
  workflow.reporter.subscribe((event) => {
35
29
  events.push(event);
@@ -49,24 +43,24 @@ class Schematics {
49
43
  return events;
50
44
  }
51
45
  async migrate(schematicName, migrationVersion, options = {}) {
52
- const host = new core_1.virtualFs.ScopedHost(new node_1.NodeJsSyncHost(), this.cwd);
53
- const workflow = new tools_1.NodeWorkflow(host, {
46
+ const host = new virtualFs.ScopedHost(new NodeJsSyncHost(), this.cwd);
47
+ const workflow = new NodeWorkflow(host, {
54
48
  force: true,
55
49
  dryRun: false,
56
- engineHostCreator: ({ resolvePaths }) => new migration_engine_host_1.MigrationEngineHost(resolvePaths),
50
+ engineHostCreator: ({ resolvePaths }) => new MigrationEngineHost(resolvePaths),
57
51
  });
58
52
  const events = [];
59
53
  workflow.reporter.subscribe((event) => {
60
54
  events.push(event);
61
55
  });
62
- const collections = (0, utils_1.expandCollections)(this.cwd, (0, utils_2.resolveSchematics)(this.cwd), schematicName);
56
+ const collections = expandCollections(this.cwd, resolveSchematics(this.cwd), schematicName);
63
57
  const migrations = collections
64
58
  .map((collection) => {
65
59
  const schematic = collection.description.schematics[schematicName];
66
60
  if (!schematic) {
67
61
  return [];
68
62
  }
69
- const migrationsPath = (0, node_path_2.join)((0, node_path_1.dirname)(collection.description.path), (0, node_path_1.dirname)(schematic.schema), 'migrations.json');
63
+ const migrationsPath = join(dirname(collection.description.path), dirname(schematic.schema), 'migrations.json');
70
64
  const data = require(migrationsPath);
71
65
  return Object.keys(data.schematics)
72
66
  .map((key) => ({
@@ -78,7 +72,7 @@ class Schematics {
78
72
  })
79
73
  .flat();
80
74
  for (const migration of migrations) {
81
- await (0, rxjs_1.lastValueFrom)(workflow.execute({
75
+ await lastValueFrom(workflow.execute({
82
76
  collection: migration.collection,
83
77
  schematic: migration.schematic,
84
78
  debug: false,
@@ -91,5 +85,3 @@ class Schematics {
91
85
  return events;
92
86
  }
93
87
  }
94
- exports.Schematics = Schematics;
95
- //# sourceMappingURL=schematics.js.map
@@ -4,4 +4,3 @@ import type { FileSystemSchematicDescription } from '@angular-devkit/schematics/
4
4
  export declare const createCollection: (root: string, collectionName: string) => Collection<FileSystemCollectionDescription, FileSystemSchematicDescription>;
5
5
  export declare const expandCollection: (cwd: string, collectionName: string) => Array<Collection<FileSystemCollectionDescription, FileSystemSchematicDescription>>;
6
6
  export declare const expandCollections: (cwd: string, collectionName: string, schematicName: string) => Array<Collection<FileSystemCollectionDescription, FileSystemSchematicDescription>>;
7
- //# sourceMappingURL=collection.utils.d.ts.map
@@ -1,47 +1,40 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.expandCollections = exports.expandCollection = exports.createCollection = void 0;
4
- const node_1 = require("@angular-devkit/core/node");
5
- const tools_1 = require("@angular-devkit/schematics/tools");
6
- const core_1 = require("@angular-devkit/core");
7
- const core_2 = require("@angular-devkit/core");
8
- const core_3 = require("@angular-devkit/core");
9
- const schematics_1 = require("@angular-devkit/schematics");
10
- const createCollection = (root, collectionName) => {
11
- const fsHost = new core_3.virtualFs.ScopedHost(new node_1.NodeJsSyncHost(), (0, core_1.normalize)(root));
12
- const workflow = new tools_1.NodeWorkflow(fsHost, {
1
+ import { NodeJsSyncHost } from '@angular-devkit/core/node';
2
+ import { NodeWorkflow } from '@angular-devkit/schematics/tools';
3
+ import { normalize } from '@angular-devkit/core';
4
+ import { schema } from '@angular-devkit/core';
5
+ import { virtualFs } from '@angular-devkit/core';
6
+ import { formats } from '@angular-devkit/schematics';
7
+ export const createCollection = (root, collectionName) => {
8
+ const fsHost = new virtualFs.ScopedHost(new NodeJsSyncHost(), normalize(root));
9
+ const workflow = new NodeWorkflow(fsHost, {
13
10
  force: false,
14
11
  dryRun: true,
15
12
  packageManager: 'yarn',
16
- root: (0, core_1.normalize)(root),
17
- registry: new core_2.schema.CoreSchemaRegistry(schematics_1.formats.standardFormats),
13
+ root: normalize(root),
14
+ registry: new schema.CoreSchemaRegistry(formats.standardFormats),
18
15
  });
19
16
  return workflow.engine.createCollection(collectionName);
20
17
  };
21
- exports.createCollection = createCollection;
22
- const expandCollection = (cwd, collectionName) => {
23
- const collection = (0, exports.createCollection)(cwd, collectionName);
18
+ export const expandCollection = (cwd, collectionName) => {
19
+ const collection = createCollection(cwd, collectionName);
24
20
  const collections = [collection];
25
21
  if (collection.baseDescriptions) {
26
22
  const baseCollections = collection.baseDescriptions
27
- .map((base) => (0, exports.expandCollection)(cwd, base.name))
23
+ .map((base) => expandCollection(cwd, base.name))
28
24
  .flat();
29
25
  return [...collections, ...baseCollections];
30
26
  }
31
27
  return collections;
32
28
  };
33
- exports.expandCollection = expandCollection;
34
- const expandCollections = (cwd, collectionName, schematicName) => {
35
- const collections = (0, exports.expandCollection)(cwd, collectionName).reverse();
29
+ export const expandCollections = (cwd, collectionName, schematicName) => {
30
+ const collections = expandCollection(cwd, collectionName).reverse();
36
31
  const nested = collections.map((collection) => {
37
32
  const schematic = collection.description.schematics[schematicName];
38
33
  if (schematic && schematic.extends) {
39
34
  const [extendsCollection, extendsSchematic] = schematic.extends.split(':');
40
- return (0, exports.expandCollections)(cwd, extendsCollection, extendsSchematic);
35
+ return expandCollections(cwd, extendsCollection, extendsSchematic);
41
36
  }
42
37
  return [];
43
38
  });
44
39
  return [...nested, collections].flat();
45
40
  };
46
- exports.expandCollections = expandCollections;
47
- //# sourceMappingURL=collection.utils.js.map
@@ -1,3 +1,2 @@
1
- export * from './collection.utils';
2
- export * from './resolve.utils';
3
- //# sourceMappingURL=index.d.ts.map
1
+ export * from './collection.utils.js';
2
+ export * from './resolve.utils.js';
@@ -1,19 +1,2 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./collection.utils"), exports);
18
- __exportStar(require("./resolve.utils"), exports);
19
- //# sourceMappingURL=index.js.map
1
+ export * from "./collection.utils.js";
2
+ export * from "./resolve.utils.js";
@@ -1,2 +1 @@
1
1
  export declare const resolveSchematics: (cwd?: string) => string;
2
- //# sourceMappingURL=resolve.utils.d.ts.map
@@ -1,27 +1,22 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveSchematics = void 0;
4
- const node_path_1 = require("node:path");
5
- const node_path_2 = require("node:path");
1
+ import { dirname } from 'node:path';
2
+ import { join } from 'node:path';
6
3
  const dynamicRequire = eval('require');
7
4
  const findPnpApiPath = (cwd) => {
8
5
  if (process.versions.pnp) {
9
6
  return require('module').findPnpApi(__filename).resolveRequest('pnpapi', null);
10
7
  }
11
- return (0, node_path_2.join)(cwd || process.cwd(), '.pnp.cjs');
8
+ return join(cwd || process.cwd(), '.pnp.cjs');
12
9
  };
13
10
  const setupPnp = (cwd) => {
14
11
  const pnpPath = findPnpApiPath(cwd);
15
12
  dynamicRequire(pnpPath).setup();
16
13
  };
17
- const resolveSchematics = (cwd) => {
14
+ export const resolveSchematics = (cwd) => {
18
15
  try {
19
- return (0, node_path_2.join)((0, node_path_1.dirname)(dynamicRequire.resolve('@atls/schematics')), '..');
16
+ return join(dirname(dynamicRequire.resolve('@atls/schematics')), '..');
20
17
  }
21
18
  catch (error) {
22
19
  setupPnp(cwd);
23
- return (0, node_path_2.join)((0, node_path_1.dirname)(dynamicRequire.resolve('@atls/schematics')), '..');
20
+ return join(dirname(dynamicRequire.resolve('@atls/schematics')), '..');
24
21
  }
25
22
  };
26
- exports.resolveSchematics = resolveSchematics;
27
- //# sourceMappingURL=resolve.utils.js.map
package/package.json CHANGED
@@ -1,8 +1,16 @@
1
1
  {
2
2
  "name": "@atls/code-schematics",
3
- "version": "0.0.20",
3
+ "version": "1.0.0",
4
4
  "license": "BSD-3-Clause",
5
- "main": "dist/index.js",
5
+ "type": "module",
6
+ "exports": {
7
+ "./package.json": "./package.json",
8
+ ".": {
9
+ "import": "./dist/index.js",
10
+ "types": "./dist/index.d.ts",
11
+ "default": "./dist/index.js"
12
+ }
13
+ },
6
14
  "files": [
7
15
  "dist"
8
16
  ],
@@ -12,14 +20,21 @@
12
20
  "postpack": "rm -rf dist"
13
21
  },
14
22
  "dependencies": {
15
- "@angular-devkit/core": "17.0.7",
16
- "@angular-devkit/schematics": "17.0.7"
23
+ "@angular-devkit/core": "18.0.6",
24
+ "@angular-devkit/schematics": "18.0.6"
17
25
  },
18
26
  "devDependencies": {
19
27
  "rxjs": "7.8.1"
20
28
  },
21
29
  "publishConfig": {
22
- "main": "dist/index.js",
30
+ "exports": {
31
+ "./package.json": "./package.json",
32
+ ".": {
33
+ "import": "./dist/index.js",
34
+ "types": "./dist/index.d.ts",
35
+ "default": "./dist/index.js"
36
+ }
37
+ },
23
38
  "typings": "dist/index.d.ts"
24
39
  },
25
40
  "typings": "dist/index.d.ts"
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"migration-engine.host.d.ts","sourceRoot":"","sources":["../src/migration-engine.host.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAE1D,qBAAa,mBAAoB,SAAQ,iBAAiB;IAExD,SAAS,CAAC,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;CAGvD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"migration-engine.host.js","sourceRoot":"","sources":["../src/migration-engine.host.ts"],"names":[],"mappings":";;;AAAA,iEAA0D;AAE1D,MAAa,mBAAoB,SAAQ,wCAAiB;IAE9C,sBAAsB,CAAC,IAAY;QAC3C,OAAO,IAAI,CAAA;IACb,CAAC;CACF;AALD,kDAKC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"node-pnp-engine.host.d.ts","sourceRoot":"","sources":["../src/node-pnp-engine.host.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAkC,6BAA6B,CAAA;AACrF,OAAO,EAAE,wBAAwB,EAAE,MAAqB,kCAAkC,CAAA;AAC1F,OAAO,EAAE,uBAAuB,EAAE,MAAsB,kCAAkC,CAAA;AAI1F,OAAO,EAAE,wBAAwB,EAAE,MAAqB,kCAAkC,CAAA;AAK1F,qBAAa,iBAAkB,SAAQ,wBAAwB;IACjD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC;gBAAN,KAAK,CAAC,sBAAU;IAI7C,OAAO,CAAC,OAAO;IA6Df,SAAS,CAAC,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM;IAQ1E,SAAS,CAAC,uBAAuB,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;;;;IAUvE,SAAS,CAAC,+BAA+B,CACvC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,OAAO,CAAC,wBAAwB,CAAC,GACtC,wBAAwB;IAY3B,SAAS,CAAC,8BAA8B,CACtC,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,wBAAwB,EACrC,IAAI,EAAE,OAAO,CAAC,uBAAuB,CAAC,GACrC,uBAAuB;CAO3B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"node-pnp-engine.host.js","sourceRoot":"","sources":["../src/node-pnp-engine.host.ts"],"names":[],"mappings":";;;AAAA,yCAAmE;AACnE,yCAAmE;AACnE,yCAAmE;AAKnE,4DAA0F;AAC1F,4DAA0F;AAC1F,4DAA0F;AAC1F,4DAA0F;AAC1F,4DAA0F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CACvC,IAAY,EACZ,IAAuC;QAEvC,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,OAAO,IAAI,CAAC,UAAU,KAAK,QAAQ,EAAE;YAC3D,MAAM,IAAI,+CAAuC,CAAC,IAAI,CAAC,CAAA;SACxD;QAED,OAAO;YACL,GAAG,IAAI;YACP,IAAI;SACuB,CAAA;IAC/B,CAAC;IAGS,8BAA8B,CACtC,IAAY,EACZ,WAAqC,EACrC,IAAsC;QAEtC,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YACtD,MAAM,IAAI,uCAA+B,CAAC,IAAI,CAAC,CAAA;SAChD;QAED,OAAO,IAA+B,CAAA;IACxC,CAAC;CACF;AA9GD,8CA8GC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"schematics.d.ts","sourceRoot":"","sources":["../src/schematics.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAc,4BAA4B,CAAA;AAWhE,qBAAa,UAAU;IAEnB,OAAO,CAAC,QAAQ,CAAC,GAAG;IACpB,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAFN,GAAG,EAAE,MAAM,EACX,KAAK,UAAQ,EACb,MAAM,UAAQ;IAG3B,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,KAAK;IAoCpC,OAAO,CAAC,aAAa,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,OAAO,KAAK;CA6D5E"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"schematics.js","sourceRoot":"","sources":["../src/schematics.ts"],"names":[],"mappings":";;;AAAA,yCAA+C;AAC/C,yCAA+C;AAG/C,oDAA+D;AAE/D,4DAAsE;AACtE,+CAA0D;AAE1D,+BAA0C;AAE1C,mEAA6D;AAC7D,iEAA4D;AAC5D,mCAA6C;AAC7C,mCAA6C;AAE7C,M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AU,EAAE,cAAc;gBAC1B,SAAS,EAAE,GAAG;gBACd,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC;aAChC,CAAC,CAAC;iBACF,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,GAAG,gBAAgB,CAAC,CAAA;QACpE,CAAC,CAAC;aACD,IAAI,EAAE,CAAA;QAET,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE;YAElC,MAAM,IAAA,oBAAa,EACjB,QAAQ,CAAC,OAAO,CAAC;gBACf,UAAU,EAAE,SAAS,CAAC,UAAU;gBAChC,SAAS,EAAE,SAAS,CAAC,SAAS;gBAC9B,KAAK,EAAE,KAAK;gBACZ,OAAO,EAAE;oBACP,GAAG,OAAO;oBACV,GAAG,EAAE,IAAI,CAAC,GAAG;iBACd;aACF,CAAC,CACH,CAAA;SACF;QAED,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AAxGD,gCAwGC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"collection.utils.d.ts","sourceRoot":"","sources":["../../src/utils/collection.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAA2B,4BAA4B,CAAA;AACjF,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,kCAAkC,CAAA;AACvF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAO,kCAAkC,CAAA;AASvF,eAAO,MAAM,gBAAgB,SACrB,MAAM,kBACI,MAAM,KACrB,WAAW,+BAA+B,EAAE,8BAA8B,CAY5E,CAAA;AAED,eAAO,MAAM,gBAAgB,QACtB,MAAM,kBACK,MAAM,KACrB,MAAM,WAAW,+BAA+B,EAAE,8BAA8B,CAAC,CAcnF,CAAA;AAED,eAAO,MAAM,iBAAiB,QACvB,MAAM,kBACK,MAAM,iBACP,MAAM,KACpB,MAAM,WAAW,+BAA+B,EAAE,8BAA8B,CAAC,CAkBnF,CAAA"}
@@ -1 +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;IAED,OAAO,WAAW,CAAA;AACpB,CAAC,CAAA;AAjBY,QAAA,gBAAgB,oBAiB5B;AAEM,MAAM,iBAAiB,GAAG,CAC/B,GAAW,EACX,cAAsB,EACtB,aAAqB,EAC+D,EAAE;IACtF,MAAM,WAAW,GAAG,IAAA,wBAAgB,EAAC,GAAG,EAAE,cAAc,CAAC,CAAC,OAAO,EAAE,CAAA;IAEnE,MAAM,MAAM,GAAG,WAAW,CAAC,GAAG,CAAC,CAC7B,UAAuF,EACvF,EAAE;QACF,MAAM,SAAS,GAAG,UAAU,CAAC,WAAW,CAAC,UAAU,CAAC,aAAa,CAAC,CAAA;QAElE,IAAI,SAAS,IAAI,SAAS,CAAC,OAAO,EAAE;YAClC,MAAM,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;YAE1E,OAAO,IAAA,yBAAiB,EAAC,GAAG,EAAE,iBAAiB,EAAE,gBAAgB,CAAC,CAAA;SACnE;QAED,OAAO,EAAE,CAAA;IACX,CAAC,CAAC,CAAA;IAEF,OAAO,CAAC,GAAG,MAAM,EAAE,WAAW,CAAC,CAAC,IAAI,EAAE,CAAA;AACxC,CAAC,CAAA;AAtBY,QAAA,iBAAiB,qBAsB7B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC;AAClC,kDAA+B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolve.utils.d.ts","sourceRoot":"","sources":["../../src/utils/resolve.utils.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,iBAAiB,SAAU,MAAM,WAQ7C,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolve.utils.js","sourceRoot":"","sources":["../../src/utils/resolve.utils.ts"],"names":[],"mappings":";;;AAAA,yCAAmC;AACnC,yCAAmC;AAEnC,MAAM,cAAc,GAAG,IAAI,CAAC,SAAS,CAAC,CAAA;AAEtC,MAAM,cAAc,GAAG,CAAC,GAAY,EAAE,EAAE;IACtC,IAAI,OAAO,CAAC,QAAQ,CAAC,GAAG,EAAE;QACxB,OAAO,OAAO,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,cAAc,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAA;KAC/E;IAED,OAAO,IAAA,gBAAI,EAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,EAAE,UAAU,CAAC,CAAA;AAC/C,CAAC,CAAA;AAED,MAAM,QAAQ,GAAG,CAAC,GAAY,EAAE,EAAE;IAChC,MAAM,OAAO,GAAG,cAAc,CAAC,GAAG,CAAC,CAAA;IAEnC,cAAc,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,CAAA;AACjC,CAAC,CAAA;AAEM,MAAM,iBAAiB,GAAG,CAAC,GAAY,EAAE,EAAE;IAChD,IAAI;QACF,OAAO,IAAA,gBAAI,EAAC,IAAA,mBAAO,EAAC,cAAc,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAA;KACvE;IAAC,OAAO,KAAK,EAAE;QACd,QAAQ,CAAC,GAAG,CAAC,CAAA;QAEb,OAAO,IAAA,gBAAI,EAAC,IAAA,mBAAO,EAAC,cAAc,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAA;KACvE;AACH,CAAC,CAAA;AARY,QAAA,iBAAiB,qBAQ7B"}