@nx/express 23.0.0-beta.24 → 23.0.0-beta.25

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,2 +1 @@
1
1
  export { applicationGenerator } from './src/generators/application/application';
2
- //# sourceMappingURL=index.d.ts.map
@@ -3,4 +3,3 @@ import type { Schema } from './schema';
3
3
  export declare function applicationGenerator(tree: Tree, schema: Schema): Promise<GeneratorCallback>;
4
4
  export declare function applicationGeneratorInternal(tree: Tree, schema: Schema): Promise<GeneratorCallback>;
5
5
  export default applicationGenerator;
6
- //# sourceMappingURL=application.d.ts.map
@@ -2,4 +2,3 @@ import { GeneratorCallback, Tree } from '@nx/devkit';
2
2
  import type { Schema } from './schema';
3
3
  export declare function initGenerator(tree: Tree, schema: Schema): Promise<GeneratorCallback>;
4
4
  export default initGenerator;
5
- //# sourceMappingURL=init.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { type Tree } from '@nx/devkit';
2
2
  export declare function assertSupportedExpressVersion(tree: Tree): void;
3
- //# sourceMappingURL=assert-supported-express-version.d.ts.map
@@ -10,4 +10,3 @@ type ExpressVersions = {
10
10
  export declare function versions(tree: Tree): ExpressVersions;
11
11
  export declare function getInstalledExpressVersion(tree?: Tree): string | null;
12
12
  export {};
13
- //# sourceMappingURL=versions.d.ts.map
@@ -5,7 +5,8 @@ exports.versions = versions;
5
5
  exports.getInstalledExpressVersion = getInstalledExpressVersion;
6
6
  const internal_1 = require("@nx/devkit/internal");
7
7
  const semver_1 = require("semver");
8
- exports.nxVersion = require('../../package.json').version;
8
+ const path_1 = require("path");
9
+ exports.nxVersion = require((0, path_1.join)('@nx/express', 'package.json')).version;
9
10
  exports.minSupportedExpressVersion = '4.0.0';
10
11
  // Fresh-install constants (latest supported major).
11
12
  exports.expressVersion = '^5.1.0';
package/generators.json CHANGED
@@ -4,15 +4,15 @@
4
4
  "extends": ["@nx/workspace"],
5
5
  "generators": {
6
6
  "init": {
7
- "factory": "./src/generators/init/init#initGenerator",
8
- "schema": "./src/generators/init/schema.json",
7
+ "factory": "./dist/src/generators/init/init#initGenerator",
8
+ "schema": "./dist/src/generators/init/schema.json",
9
9
  "description": "Initialize the `@nx/express` plugin.",
10
10
  "aliases": ["ng-add"],
11
11
  "hidden": true
12
12
  },
13
13
  "application": {
14
- "factory": "./src/generators/application/application#applicationGeneratorInternal",
15
- "schema": "./src/generators/application/schema.json",
14
+ "factory": "./dist/src/generators/application/application#applicationGeneratorInternal",
15
+ "schema": "./dist/src/generators/application/schema.json",
16
16
  "aliases": ["app"],
17
17
  "x-type": "application",
18
18
  "description": "Create an Express application."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/express",
3
- "version": "23.0.0-beta.24",
3
+ "version": "23.0.0-beta.25",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Express contains executors and generators for allowing your workspace to create powerful Express Node applications and APIs.",
6
6
  "repository": {
@@ -17,9 +17,15 @@
17
17
  "CLI",
18
18
  "Backend"
19
19
  ],
20
- "main": "./index.js",
20
+ "main": "./dist/index.js",
21
21
  "type": "commonjs",
22
- "types": "./index.d.ts",
22
+ "types": "./dist/index.d.ts",
23
+ "files": [
24
+ "dist",
25
+ "!dist/tsconfig.tsbuildinfo",
26
+ "migrations.json",
27
+ "generators.json"
28
+ ],
23
29
  "author": "Victor Savkin",
24
30
  "license": "MIT",
25
31
  "bugs": {
@@ -29,14 +35,15 @@
29
35
  "generators": "./generators.json",
30
36
  "ng-update": {
31
37
  "requirements": {},
32
- "migrations": "./migrations.json"
38
+ "migrations": "./migrations.json",
39
+ "supportsOptionalUpdates": true
33
40
  },
34
41
  "dependencies": {
35
- "@nx/devkit": "23.0.0-beta.24",
36
- "@nx/js": "23.0.0-beta.24",
37
- "@nx/node": "23.0.0-beta.24",
38
42
  "semver": "^7.6.3",
39
- "tslib": "^2.3.0"
43
+ "tslib": "^2.3.0",
44
+ "@nx/devkit": "23.0.0-beta.25",
45
+ "@nx/js": "23.0.0-beta.25",
46
+ "@nx/node": "23.0.0-beta.25"
40
47
  },
41
48
  "peerDependencies": {
42
49
  "express": ">=4.0.0 <6.0.0"
@@ -48,5 +55,18 @@
48
55
  },
49
56
  "publishConfig": {
50
57
  "access": "public"
58
+ },
59
+ "exports": {
60
+ ".": {
61
+ "@nx/nx-source": "./index.ts",
62
+ "types": "./dist/index.d.ts",
63
+ "default": "./dist/index.js"
64
+ },
65
+ "./package.json": "./package.json",
66
+ "./migrations.json": "./migrations.json",
67
+ "./generators.json": "./generators.json"
68
+ },
69
+ "typesVersions": {
70
+ "*": {}
51
71
  }
52
72
  }
package/index.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/express/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../../../../packages/express/src/generators/application/application.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAoB1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAkDvC,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAMpE;AAED,wBAAsB,4BAA4B,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BA2B5E;AAED,eAAe,oBAAoB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../../../packages/express/src/generators/init/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,iBAAiB,EAGjB,IAAI,EACL,MAAM,YAAY,CAAC;AAGpB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAwBvC,wBAAsB,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAa7D;AAED,eAAe,aAAa,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"assert-supported-express-version.d.ts","sourceRoot":"","sources":["../../../../../packages/express/src/utils/assert-supported-express-version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAIvC,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAE9D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../../../packages/express/src/utils/versions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAOvC,eAAO,MAAM,SAAS,KAAwC,CAAC;AAE/D,eAAO,MAAM,0BAA0B,UAAU,CAAC;AAGlD,eAAO,MAAM,cAAc,WAAW,CAAC;AACvC,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAE9C,KAAK,eAAe,GAAG;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,qBAAqB,EAAE,MAAM,CAAC;CAC/B,CAAC;AAeF,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,eAAe,CAOpD;AAED,wBAAgB,0BAA0B,CAAC,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAKrE"}
File without changes
File without changes
File without changes
File without changes
File without changes