@atls/code-schematics 0.0.7 → 0.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/dist/index.js +5 -1
- package/dist/node-pnp-engine.host.js +2 -2
- package/dist/utils/index.js +5 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
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);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -29,13 +29,13 @@ class NodePnpEngineHost extends tools_4.FileSystemEngineHostBase {
|
|
|
29
29
|
const relativeBase = requester ? (0, node_path_1.dirname)(requester) : process.cwd();
|
|
30
30
|
let collectionPath;
|
|
31
31
|
if (name.startsWith('.')) {
|
|
32
|
-
name = (0,
|
|
32
|
+
name = (0, node_path_3.resolve)(relativeBase, name);
|
|
33
33
|
}
|
|
34
34
|
const resolveOptions = {
|
|
35
35
|
paths: (requester ? [(0, node_path_1.dirname)(requester), ...(this.paths || [])] : this.paths)?.filter(Boolean),
|
|
36
36
|
};
|
|
37
37
|
try {
|
|
38
|
-
const packageJsonPath = require.resolve((0,
|
|
38
|
+
const packageJsonPath = require.resolve((0, node_path_2.join)(name, 'package.json'), resolveOptions);
|
|
39
39
|
const { schematics } = require(packageJsonPath);
|
|
40
40
|
if (!schematics || typeof schematics !== 'string') {
|
|
41
41
|
throw new tools_6.NodePackageDoesNotSupportSchematics(name);
|
package/dist/utils/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
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);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atls/code-schematics",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"postpack": "rm -rf dist"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@angular-devkit/core": "^13.
|
|
17
|
-
"@angular-devkit/schematics": "^13.
|
|
16
|
+
"@angular-devkit/core": "^13.3.0",
|
|
17
|
+
"@angular-devkit/schematics": "^13.3.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"rxjs": "
|
|
20
|
+
"rxjs": "7.5.5"
|
|
21
21
|
},
|
|
22
22
|
"publishConfig": {
|
|
23
23
|
"main": "dist/index.js",
|