@nestjs/schematics 8.0.1 → 8.0.2

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestApplication",
3
+ "$id": "SchematicsNestApplication",
4
4
  "title": "Nest Application Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestClass",
3
+ "$id": "SchematicsNestClass",
4
4
  "title": "Nest Class Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestModule",
3
+ "$id": "SchematicsNestModule",
4
4
  "title": "Nest Module Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestController",
3
+ "$id": "SchematicsNestController",
4
4
  "title": "Nest Controller Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestDecorator",
3
+ "$id": "SchematicsNestDecorator",
4
4
  "title": "Nest Decorator Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestFilter",
3
+ "$id": "SchematicsNestFilter",
4
4
  "title": "Nest Filter Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestGateway",
3
+ "$id": "SchematicsNestGateway",
4
4
  "title": "Nest Gateway Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestGuard",
3
+ "$id": "SchematicsNestGuard",
4
4
  "title": "Nest Guard Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestInterceptor",
3
+ "$id": "SchematicsNestInterceptor",
4
4
  "title": "Nest Interceptor Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestInterface",
3
+ "$id": "SchematicsNestInterface",
4
4
  "title": "Nest Interface Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -64,10 +64,9 @@ function updateJestConfig(jestOptions, options, packageKey, distRoot) {
64
64
  if (!jestOptions.moduleNameMapper) {
65
65
  jestOptions.moduleNameMapper = {};
66
66
  }
67
- const deepPackagePath = packageKey + '/(.*)';
67
+ const packageKeyRegex = '^' + packageKey + '(|/.*)$';
68
68
  const packageRoot = core_1.join('<rootDir>', distRoot);
69
- jestOptions.moduleNameMapper[deepPackagePath] = core_1.join(packageRoot, '$1');
70
- jestOptions.moduleNameMapper[packageKey] = packageRoot;
69
+ jestOptions.moduleNameMapper[packageKeyRegex] = core_1.join(packageRoot, '$1');
71
70
  }
72
71
  function updateNpmScripts(scripts, options) {
73
72
  if (!scripts) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestLibrary",
3
+ "$id": "SchematicsNestLibrary",
4
4
  "title": "Nest Library Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestMiddleware",
3
+ "$id": "SchematicsNestMiddleware",
4
4
  "title": "Nest Middleware Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestModule",
3
+ "$id": "SchematicsNestModule",
4
4
  "title": "Nest Module Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestPipe",
3
+ "$id": "SchematicsNestPipe",
4
4
  "title": "Nest Pipe Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestProvider",
3
+ "$id": "SchematicsNestProvider",
4
4
  "title": "Nest Provider Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestResolver",
3
+ "$id": "SchematicsNestResolver",
4
4
  "title": "Nest Resolver Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestResource",
3
+ "$id": "SchematicsNestResource",
4
4
  "title": "Nest Resource Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestService",
3
+ "$id": "SchematicsNestService",
4
4
  "title": "Nest Service Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestSubApp",
3
+ "$id": "SchematicsNestSubApp",
4
4
  "title": "Nest SubApp Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/schematics",
3
- "version": "8.0.1",
3
+ "version": "8.0.2",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@schematics)",
5
5
  "main": "dist/index.js",
6
6
  "files": [