@typeix/schematics 8.1.1 → 8.1.3

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.
Files changed (97) hide show
  1. package/LICENCE +0 -0
  2. package/README.md +0 -0
  3. package/dist/collection.json +0 -0
  4. package/dist/index.d.ts +0 -0
  5. package/dist/index.js +0 -0
  6. package/dist/lib/application/application.factory.d.ts +0 -0
  7. package/dist/lib/application/application.factory.js +6 -6
  8. package/dist/lib/application/files/js/.babelrc +0 -0
  9. package/dist/lib/application/files/js/.prettierrc +0 -0
  10. package/dist/lib/application/files/js/README.md +0 -0
  11. package/dist/lib/application/files/js/index.js +1 -1
  12. package/dist/lib/application/files/js/jest-runner.json +0 -0
  13. package/dist/lib/application/files/js/jsconfig.json +0 -0
  14. package/dist/lib/application/files/js/nodemon.json +0 -0
  15. package/dist/lib/application/files/js/package.json +0 -0
  16. package/dist/lib/application/files/js/src/app.controller.js +0 -0
  17. package/dist/lib/application/files/js/src/app.controller.spec.js +0 -0
  18. package/dist/lib/application/files/js/src/app.module.js +1 -1
  19. package/dist/lib/application/files/js/src/app.service.js +0 -0
  20. package/dist/lib/application/files/js/src/bootstrap.js +0 -0
  21. package/dist/lib/application/files/js/test/app.e2e-spec.js +0 -0
  22. package/dist/lib/application/files/js/test/jest-e2e.json +0 -0
  23. package/dist/lib/application/files/js/typeix-cli.json +0 -0
  24. package/dist/lib/application/files/ts/.eslintrc.js +0 -0
  25. package/dist/lib/application/files/ts/.prettierrc +0 -0
  26. package/dist/lib/application/files/ts/README.md +0 -0
  27. package/dist/lib/application/files/ts/jest-runner.json +0 -0
  28. package/dist/lib/application/files/ts/package.json +0 -0
  29. package/dist/lib/application/files/ts/src/app.controller.spec.ts +0 -0
  30. package/dist/lib/application/files/ts/src/app.controller.ts +0 -0
  31. package/dist/lib/application/files/ts/src/app.module.ts +0 -0
  32. package/dist/lib/application/files/ts/src/app.service.ts +0 -0
  33. package/dist/lib/application/files/ts/src/bootstrap.ts +0 -0
  34. package/dist/lib/application/files/ts/test/app.e2e-spec.ts +0 -0
  35. package/dist/lib/application/files/ts/test/jest-e2e.json +0 -0
  36. package/dist/lib/application/files/ts/tsconfig.build.json +0 -0
  37. package/dist/lib/application/files/ts/tsconfig.json +0 -0
  38. package/dist/lib/application/files/ts/typeix-cli.json +0 -0
  39. package/dist/lib/application/schema.json +0 -0
  40. package/dist/lib/controller/controller.factory.d.ts +0 -0
  41. package/dist/lib/controller/controller.factory.js +8 -8
  42. package/dist/lib/controller/files/js/__name__.controller.js +0 -0
  43. package/dist/lib/controller/files/js/__name__.controller.spec.js +0 -0
  44. package/dist/lib/controller/files/ts/__name__.controller.spec.ts +0 -0
  45. package/dist/lib/controller/files/ts/__name__.controller.ts +0 -0
  46. package/dist/lib/controller/schema.json +0 -0
  47. package/dist/lib/defaults.d.ts +0 -0
  48. package/dist/lib/defaults.js +0 -0
  49. package/dist/lib/interceptor/files/js/__name__.interceptor.js +0 -0
  50. package/dist/lib/interceptor/files/js/__name__.interceptor.spec.js +0 -0
  51. package/dist/lib/interceptor/files/ts/__name__.interceptor.spec.ts +0 -0
  52. package/dist/lib/interceptor/files/ts/__name__.interceptor.ts +0 -0
  53. package/dist/lib/interceptor/interceptor.factory.d.ts +0 -0
  54. package/dist/lib/interceptor/interceptor.factory.js +6 -6
  55. package/dist/lib/interceptor/schema.json +0 -0
  56. package/dist/lib/module/files/js/__name__.module.js +0 -0
  57. package/dist/lib/module/files/ts/__name__.module.ts +0 -0
  58. package/dist/lib/module/module.factory.d.ts +0 -0
  59. package/dist/lib/module/module.factory.js +7 -7
  60. package/dist/lib/module/schema.json +0 -0
  61. package/dist/lib/provider/files/js/__name__.js +0 -0
  62. package/dist/lib/provider/files/js/__name__.spec.js +0 -0
  63. package/dist/lib/provider/files/ts/__name__.spec.ts +0 -0
  64. package/dist/lib/provider/files/ts/__name__.ts +0 -0
  65. package/dist/lib/provider/provider.factory.d.ts +0 -0
  66. package/dist/lib/provider/provider.factory.js +8 -8
  67. package/dist/lib/provider/schema.json +0 -0
  68. package/dist/lib/service/files/js/__name__.service.js +0 -0
  69. package/dist/lib/service/files/js/__name__.service.spec.js +0 -0
  70. package/dist/lib/service/files/ts/__name__.service.spec.ts +0 -0
  71. package/dist/lib/service/files/ts/__name__.service.ts +0 -0
  72. package/dist/lib/service/schema.json +0 -0
  73. package/dist/lib/service/service.factory.d.ts +0 -0
  74. package/dist/lib/service/service.factory.js +9 -9
  75. package/dist/utils/dependencies.utils.d.ts +0 -0
  76. package/dist/utils/dependencies.utils.js +0 -0
  77. package/dist/utils/index.d.ts +0 -0
  78. package/dist/utils/index.js +0 -0
  79. package/dist/utils/json-file.util.d.ts +0 -0
  80. package/dist/utils/json-file.util.js +7 -7
  81. package/dist/utils/metadata.manager.d.ts +0 -0
  82. package/dist/utils/metadata.manager.js +1 -1
  83. package/dist/utils/module-import.declarator.d.ts +0 -0
  84. package/dist/utils/module-import.declarator.js +2 -2
  85. package/dist/utils/module-metadata.declarator.d.ts +0 -0
  86. package/dist/utils/module-metadata.declarator.js +0 -0
  87. package/dist/utils/module.declarator.d.ts +0 -0
  88. package/dist/utils/module.declarator.js +2 -2
  89. package/dist/utils/module.finder.d.ts +0 -0
  90. package/dist/utils/module.finder.js +1 -1
  91. package/dist/utils/name.parser.d.ts +0 -0
  92. package/dist/utils/name.parser.js +3 -3
  93. package/dist/utils/path.solver.d.ts +0 -0
  94. package/dist/utils/path.solver.js +2 -2
  95. package/dist/utils/source-root.helpers.d.ts +0 -0
  96. package/dist/utils/source-root.helpers.js +2 -2
  97. package/package.json +3 -3
package/LICENCE CHANGED
File without changes
package/README.md CHANGED
File without changes
File without changes
package/dist/index.d.ts CHANGED
File without changes
package/dist/index.js CHANGED
File without changes
File without changes
@@ -11,7 +11,7 @@ function main(options) {
11
11
  ? options.name
12
12
  : options.directory;
13
13
  options = transform(options);
14
- return schematics_1.mergeWith(generate(options, path));
14
+ return (0, schematics_1.mergeWith)(generate(options, path));
15
15
  }
16
16
  exports.main = main;
17
17
  function transform(options) {
@@ -34,18 +34,18 @@ function transform(options) {
34
34
  return target;
35
35
  }
36
36
  function resolvePackageName(path) {
37
- const { name } = path_1.parse(path);
37
+ const { name } = (0, path_1.parse)(path);
38
38
  if (name === ".") {
39
- return path_1.basename(process.cwd());
39
+ return (0, path_1.basename)(process.cwd());
40
40
  }
41
41
  return name;
42
42
  }
43
43
  function generate(options, path) {
44
- return schematics_1.apply(schematics_1.url(core_1.join("./files", options.language)), [
45
- schematics_1.template({
44
+ return (0, schematics_1.apply)((0, schematics_1.url)((0, core_1.join)("./files", options.language)), [
45
+ (0, schematics_1.template)({
46
46
  ...core_1.strings,
47
47
  ...options
48
48
  }),
49
- schematics_1.move(path)
49
+ (0, schematics_1.move)(path)
50
50
  ]);
51
51
  }
File without changes
File without changes
File without changes
@@ -1,2 +1,2 @@
1
1
  require('@babel/register');
2
- require('./src/main');
2
+ require('./src/bootstrap');
File without changes
File without changes
File without changes
File without changes
@@ -1,6 +1,6 @@
1
1
  import {AppController} from "./app.controller";
2
2
  import {AppService} from "./app.service";
3
- import {Logger, RootModule} from "@typeix/resty/build";
3
+ import {Logger, RootModule} from "@typeix/resty";
4
4
 
5
5
  @RootModule({
6
6
  imports: [],
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -13,9 +13,9 @@ const ELEMENT_TYPE = "controller";
13
13
  function main(options) {
14
14
  options = transform(options);
15
15
  return (tree, context) => {
16
- return schematics_1.branchAndMerge(schematics_1.chain([
17
- utils_4.mergeSourceRoot(options),
18
- schematics_1.mergeWith(generate(options)),
16
+ return (0, schematics_1.branchAndMerge)((0, schematics_1.chain)([
17
+ (0, utils_4.mergeSourceRoot)(options),
18
+ (0, schematics_1.mergeWith)(generate(options)),
19
19
  addDeclarationToModule(options)
20
20
  ]))(tree, context);
21
21
  };
@@ -32,17 +32,17 @@ function transform(source) {
32
32
  target.language !== undefined ? target.language : defaults_1.DEFAULT_LANGUAGE;
33
33
  target.path = target.flat
34
34
  ? target.path
35
- : core_1.join(target.path, target.name);
35
+ : (0, core_1.join)(target.path, target.name);
36
36
  return target;
37
37
  }
38
38
  function generate(options) {
39
- return (context) => schematics_1.apply(schematics_1.url(core_1.join("./files", options.language)), [
40
- options.spec ? schematics_1.noop() : schematics_1.filter(path => !path.endsWith(".spec.ts")),
41
- schematics_1.template({
39
+ return (context) => (0, schematics_1.apply)((0, schematics_1.url)((0, core_1.join)("./files", options.language)), [
40
+ options.spec ? (0, schematics_1.noop)() : (0, schematics_1.filter)(path => !path.endsWith(".spec.ts")),
41
+ (0, schematics_1.template)({
42
42
  ...core_1.strings,
43
43
  ...options
44
44
  }),
45
- schematics_1.move(options.path)
45
+ (0, schematics_1.move)(options.path)
46
46
  ])(context);
47
47
  }
48
48
  function addDeclarationToModule(options) {
File without changes
File without changes
File without changes
File without changes
@@ -7,7 +7,7 @@ const utils_1 = require("../../utils");
7
7
  const utils_2 = require("../../utils");
8
8
  function main(options) {
9
9
  options = transform(options);
10
- return schematics_1.chain([utils_2.mergeSourceRoot(options), schematics_1.mergeWith(generate(options))]);
10
+ return (0, schematics_1.chain)([(0, utils_2.mergeSourceRoot)(options), (0, schematics_1.mergeWith)(generate(options))]);
11
11
  }
12
12
  exports.main = main;
13
13
  function transform(options) {
@@ -27,16 +27,16 @@ function transform(options) {
27
27
  target.language = target.language !== undefined ? target.language : "ts";
28
28
  target.path = target.flat
29
29
  ? target.path
30
- : core_1.join(target.path, target.name);
30
+ : (0, core_1.join)(target.path, target.name);
31
31
  return target;
32
32
  }
33
33
  function generate(options) {
34
- return (context) => schematics_1.apply(schematics_1.url(core_1.join("./files", options.language)), [
35
- options.spec ? schematics_1.noop() : schematics_1.filter(path => !path.endsWith(".spec.ts")),
36
- schematics_1.template({
34
+ return (context) => (0, schematics_1.apply)((0, schematics_1.url)((0, core_1.join)("./files", options.language)), [
35
+ options.spec ? (0, schematics_1.noop)() : (0, schematics_1.filter)(path => !path.endsWith(".spec.ts")),
36
+ (0, schematics_1.template)({
37
37
  ...core_1.strings,
38
38
  ...options
39
39
  }),
40
- schematics_1.move(options.path)
40
+ (0, schematics_1.move)(options.path)
41
41
  ])(context);
42
42
  }
File without changes
File without changes
File without changes
File without changes
@@ -10,10 +10,10 @@ const utils_4 = require("../../utils");
10
10
  function main(options) {
11
11
  options = transform(options);
12
12
  return (tree, context) => {
13
- return schematics_1.branchAndMerge(schematics_1.chain([
14
- utils_4.mergeSourceRoot(options),
13
+ return (0, schematics_1.branchAndMerge)((0, schematics_1.chain)([
14
+ (0, utils_4.mergeSourceRoot)(options),
15
15
  addDeclarationToModule(options),
16
- schematics_1.mergeWith(generate(options))
16
+ (0, schematics_1.mergeWith)(generate(options))
17
17
  ]))(tree, context);
18
18
  };
19
19
  }
@@ -28,16 +28,16 @@ function transform(source) {
28
28
  target.path = core_1.strings.dasherize(location.path);
29
29
  target.path = target.flat
30
30
  ? target.path
31
- : core_1.join(target.path, target.name);
31
+ : (0, core_1.join)(target.path, target.name);
32
32
  return target;
33
33
  }
34
34
  function generate(options) {
35
- return (context) => schematics_1.apply(schematics_1.url(core_1.join("./files", options.language)), [
36
- schematics_1.template({
35
+ return (context) => (0, schematics_1.apply)((0, schematics_1.url)((0, core_1.join)("./files", options.language)), [
36
+ (0, schematics_1.template)({
37
37
  ...core_1.strings,
38
38
  ...options
39
39
  }),
40
- schematics_1.move(options.path)
40
+ (0, schematics_1.move)(options.path)
41
41
  ])(context);
42
42
  }
43
43
  function addDeclarationToModule(options) {
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -10,10 +10,10 @@ const utils_4 = require("../../utils");
10
10
  function main(options) {
11
11
  options = transform(options);
12
12
  return (tree, context) => {
13
- return schematics_1.branchAndMerge(schematics_1.chain([
14
- utils_4.mergeSourceRoot(options),
13
+ return (0, schematics_1.branchAndMerge)((0, schematics_1.chain)([
14
+ (0, utils_4.mergeSourceRoot)(options),
15
15
  addDeclarationToModule(options),
16
- schematics_1.mergeWith(generate(options))
16
+ (0, schematics_1.mergeWith)(generate(options))
17
17
  ]))(tree, context);
18
18
  };
19
19
  }
@@ -36,17 +36,17 @@ function transform(options) {
36
36
  target.language = target.language !== undefined ? target.language : "ts";
37
37
  target.path = target.flat
38
38
  ? target.path
39
- : core_1.join(target.path, target.name);
39
+ : (0, core_1.join)(target.path, target.name);
40
40
  return target;
41
41
  }
42
42
  function generate(options) {
43
- return (context) => schematics_1.apply(schematics_1.url(core_1.join("./files", options.language)), [
44
- options.spec ? schematics_1.noop() : schematics_1.filter((path) => !path.endsWith(".spec.ts")),
45
- schematics_1.template({
43
+ return (context) => (0, schematics_1.apply)((0, schematics_1.url)((0, core_1.join)("./files", options.language)), [
44
+ options.spec ? (0, schematics_1.noop)() : (0, schematics_1.filter)((path) => !path.endsWith(".spec.ts")),
45
+ (0, schematics_1.template)({
46
46
  ...core_1.strings,
47
47
  ...options
48
48
  }),
49
- schematics_1.move(options.path)
49
+ (0, schematics_1.move)(options.path)
50
50
  ])(context);
51
51
  }
52
52
  function addDeclarationToModule(options) {
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -11,10 +11,10 @@ const utils_4 = require("../../utils");
11
11
  function main(options) {
12
12
  options = transform(options);
13
13
  return (tree, context) => {
14
- return schematics_1.branchAndMerge(schematics_1.chain([
15
- utils_4.mergeSourceRoot(options),
14
+ return (0, schematics_1.branchAndMerge)((0, schematics_1.chain)([
15
+ (0, utils_4.mergeSourceRoot)(options),
16
16
  addDeclarationToModule(options),
17
- schematics_1.mergeWith(generate(options))
17
+ (0, schematics_1.mergeWith)(generate(options))
18
18
  ]))(tree, context);
19
19
  };
20
20
  }
@@ -23,7 +23,7 @@ function transform(source) {
23
23
  const target = Object.assign({}, source);
24
24
  target.metadata = "providers";
25
25
  target.type = "service";
26
- if (util_1.isNullOrUndefined(target.name)) {
26
+ if ((0, util_1.isNullOrUndefined)(target.name)) {
27
27
  throw new schematics_1.SchematicsException("Option (name) is required.");
28
28
  }
29
29
  const location = new utils_3.NameParser().parse(target);
@@ -32,17 +32,17 @@ function transform(source) {
32
32
  target.language = target.language !== undefined ? target.language : "ts";
33
33
  target.path = target.flat
34
34
  ? target.path
35
- : core_1.join(target.path, target.name);
35
+ : (0, core_1.join)(target.path, target.name);
36
36
  return target;
37
37
  }
38
38
  function generate(options) {
39
- return (context) => schematics_1.apply(schematics_1.url(core_1.join("./files", options.language)), [
40
- options.spec ? schematics_1.noop() : schematics_1.filter(path => !path.endsWith(".spec.ts")),
41
- schematics_1.template({
39
+ return (context) => (0, schematics_1.apply)((0, schematics_1.url)((0, core_1.join)("./files", options.language)), [
40
+ options.spec ? (0, schematics_1.noop)() : (0, schematics_1.filter)(path => !path.endsWith(".spec.ts")),
41
+ (0, schematics_1.template)({
42
42
  ...core_1.strings,
43
43
  ...options
44
44
  }),
45
- schematics_1.move(options.path)
45
+ (0, schematics_1.move)(options.path)
46
46
  ])(context);
47
47
  }
48
48
  function addDeclarationToModule(options) {
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -19,12 +19,12 @@ class JSONFile {
19
19
  return this._jsonAst;
20
20
  }
21
21
  const errors = [];
22
- this._jsonAst = jsonc_parser_1.parseTree(this.content, errors, {
22
+ this._jsonAst = (0, jsonc_parser_1.parseTree)(this.content, errors, {
23
23
  allowTrailingComma: true
24
24
  });
25
25
  if (errors.length) {
26
26
  const { error, offset } = errors[0];
27
- throw new Error(`Failed to parse "${this.path}" as JSON AST Object. ${jsonc_parser_1.printParseErrorCode(error)} at location: ${offset}.`);
27
+ throw new Error(`Failed to parse "${this.path}" as JSON AST Object. ${(0, jsonc_parser_1.printParseErrorCode)(error)} at location: ${offset}.`);
28
28
  }
29
29
  return this._jsonAst;
30
30
  }
@@ -34,10 +34,10 @@ class JSONFile {
34
34
  return undefined;
35
35
  }
36
36
  if (jsonPath.length === 0) {
37
- return jsonc_parser_1.getNodeValue(jsonAstNode);
37
+ return (0, jsonc_parser_1.getNodeValue)(jsonAstNode);
38
38
  }
39
- const node = jsonc_parser_1.findNodeAtLocation(jsonAstNode, jsonPath);
40
- return node === undefined ? undefined : jsonc_parser_1.getNodeValue(node);
39
+ const node = (0, jsonc_parser_1.findNodeAtLocation)(jsonAstNode, jsonPath);
40
+ return node === undefined ? undefined : (0, jsonc_parser_1.getNodeValue)(node);
41
41
  }
42
42
  modify(jsonPath, value, insertInOrder) {
43
43
  let getInsertionIndex;
@@ -48,14 +48,14 @@ class JSONFile {
48
48
  else if (insertInOrder !== false) {
49
49
  getInsertionIndex = insertInOrder;
50
50
  }
51
- const edits = jsonc_parser_1.modify(this.content, jsonPath, value, {
51
+ const edits = (0, jsonc_parser_1.modify)(this.content, jsonPath, value, {
52
52
  getInsertionIndex,
53
53
  formattingOptions: {
54
54
  insertSpaces: true,
55
55
  tabSize: 2
56
56
  }
57
57
  });
58
- this.content = jsonc_parser_1.applyEdits(this.content, edits);
58
+ this.content = (0, jsonc_parser_1.applyEdits)(this.content, edits);
59
59
  this.host.overwrite(this.path, this.content);
60
60
  this._jsonAst = undefined;
61
61
  }
File without changes
@@ -7,7 +7,7 @@ class MetadataManager {
7
7
  this.content = content;
8
8
  }
9
9
  insert(metadata, symbol, staticOptions) {
10
- const source = typescript_1.createSourceFile("filename.ts", this.content, typescript_1.ScriptTarget.ES2017);
10
+ const source = (0, typescript_1.createSourceFile)("filename.ts", this.content, typescript_1.ScriptTarget.ES2017);
11
11
  const decoratorNodes = this.getDecoratorMetadata(source, "@Module");
12
12
  const node = decoratorNodes[0];
13
13
  const matchingProperties = node.properties
File without changes
@@ -28,10 +28,10 @@ class ModuleImportDeclarator {
28
28
  computeRelativePath(options) {
29
29
  let importModulePath;
30
30
  if (options.type !== undefined) {
31
- importModulePath = core_1.normalize(`/${options.path}/${options.name}.${options.type}`);
31
+ importModulePath = (0, core_1.normalize)(`/${options.path}/${options.name}.${options.type}`);
32
32
  }
33
33
  else {
34
- importModulePath = core_1.normalize(`/${options.path}/${options.name}`);
34
+ importModulePath = (0, core_1.normalize)(`/${options.path}/${options.name}`);
35
35
  }
36
36
  return this.solver.relative(options.module, importModulePath);
37
37
  }
File without changes
File without changes
File without changes
@@ -21,10 +21,10 @@ class ModuleDeclarator {
21
21
  target.symbol = options.className;
22
22
  }
23
23
  else if (options.type !== undefined) {
24
- target.symbol = strings_1.classify(options.name).concat(strings_1.capitalize(options.type));
24
+ target.symbol = (0, strings_1.classify)(options.name).concat((0, strings_1.capitalize)(options.type));
25
25
  }
26
26
  else {
27
- target.symbol = strings_1.classify(options.name);
27
+ target.symbol = (0, strings_1.classify)(options.name);
28
28
  }
29
29
  return target;
30
30
  }
File without changes
@@ -17,7 +17,7 @@ class ModuleFinder {
17
17
  }
18
18
  const moduleFilename = directory.subfiles.find(filename => /\.module\.(t|j)s$/.test(filename));
19
19
  return moduleFilename !== undefined
20
- ? core_1.join(directory.path, moduleFilename.valueOf())
20
+ ? (0, core_1.join)(directory.path, moduleFilename.valueOf())
21
21
  : this.findIn(directory.parent);
22
22
  }
23
23
  }
File without changes
@@ -4,13 +4,13 @@ exports.NameParser = void 0;
4
4
  const core_1 = require("@angular-devkit/core");
5
5
  class NameParser {
6
6
  parse(options) {
7
- const nameWithoutPath = core_1.basename(options.name);
8
- const namePath = core_1.dirname((options.path === undefined ? "" : options.path)
7
+ const nameWithoutPath = (0, core_1.basename)(options.name);
8
+ const namePath = (0, core_1.dirname)((options.path === undefined ? "" : options.path)
9
9
  .concat("/")
10
10
  .concat(options.name));
11
11
  return {
12
12
  name: nameWithoutPath,
13
- path: core_1.normalize("/".concat(namePath))
13
+ path: (0, core_1.normalize)("/".concat(namePath))
14
14
  };
15
15
  }
16
16
  }
File without changes
@@ -5,10 +5,10 @@ const core_1 = require("@angular-devkit/core");
5
5
  class PathSolver {
6
6
  relative(from, to) {
7
7
  const placeholder = "/placeholder";
8
- const relativeDir = core_1.relative(core_1.dirname((placeholder + from)), core_1.dirname((placeholder + to)));
8
+ const relativeDir = (0, core_1.relative)((0, core_1.dirname)((placeholder + from)), (0, core_1.dirname)((placeholder + to)));
9
9
  return (relativeDir.startsWith(".")
10
10
  ? relativeDir
11
- : "./" + relativeDir).concat(relativeDir.length === 0 ? core_1.basename(to) : "/" + core_1.basename(to));
11
+ : "./" + relativeDir).concat(relativeDir.length === 0 ? (0, core_1.basename)(to) : "/" + (0, core_1.basename)(to));
12
12
  }
13
13
  }
14
14
  exports.PathSolver = PathSolver;
File without changes
@@ -17,8 +17,8 @@ function mergeSourceRoot(options) {
17
17
  const defaultSourceRoot = options.sourceRoot !== undefined ? options.sourceRoot : defaults_1.DEFAULT_PATH_NAME;
18
18
  options.path =
19
19
  options.path !== undefined
20
- ? core_1.join(core_1.normalize(defaultSourceRoot), options.path)
21
- : core_1.normalize(defaultSourceRoot);
20
+ ? (0, core_1.join)((0, core_1.normalize)(defaultSourceRoot), options.path)
21
+ : (0, core_1.normalize)(defaultSourceRoot);
22
22
  return host;
23
23
  };
24
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typeix/schematics",
3
- "version": "8.1.1",
3
+ "version": "8.1.3",
4
4
  "files": [
5
5
  "dist/**/*"
6
6
  ],
@@ -21,7 +21,7 @@
21
21
  "devDependencies": {
22
22
  "@commitlint/cli": "12.1.1",
23
23
  "@commitlint/config-angular": "12.1.1",
24
- "@typeix/resty": "^8.1.1",
24
+ "@typeix/resty": "^8.1.3",
25
25
  "@types/fs-extra": "9.0.11",
26
26
  "@types/jest": "^26.0.23",
27
27
  "cpx": "^1.5.0",
@@ -49,5 +49,5 @@
49
49
  "bugs": {
50
50
  "url": "https://github.com/typeix/schematics/issues"
51
51
  },
52
- "gitHead": "84fbef4402a05647de0d7421b357f3c19d980ea9"
52
+ "gitHead": "56402fd50d57a5e628c6ecfc2eb30c3e8c947809"
53
53
  }