@nx/devkit 22.7.0-pr.35019.f500fd7 → 22.7.0-pr.35356.e1b62ce

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/assets.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "outDir": "dist/packages/devkit",
3
+ "assets": [
4
+ {
5
+ "glob": "**/files/**"
6
+ },
7
+ {
8
+ "glob": "**/files/**/.gitkeep"
9
+ },
10
+ {
11
+ "glob": "src/**/schema.d.ts"
12
+ },
13
+ "LICENSE"
14
+ ]
15
+ }
package/migrations.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "generators": {},
3
- "packageJsonUpdates": {},
4
- "version": "0.1"
2
+ "generators": {},
3
+ "packageJsonUpdates": {},
4
+ "version": "0.1"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/devkit",
3
- "version": "22.7.0-pr.35019.f500fd7",
3
+ "version": "22.7.0-pr.35356.e1b62ce",
4
4
  "private": false,
5
5
  "description": "The Nx Devkit is used to customize Nx for different technologies and use cases. It contains many utility functions for reading and writing files, updating configuration, working with Abstract Syntax Trees(ASTs), and more. Learn more about [extending Nx by leveraging the Nx Devkit](https://nx.dev/extending-nx/intro/getting-started) on our docs.",
6
6
  "repository": {
@@ -20,7 +20,8 @@
20
20
  "CLI"
21
21
  ],
22
22
  "main": "./index.js",
23
- "typings": "./index.d.ts",
23
+ "type": "commonjs",
24
+ "types": "./index.d.ts",
24
25
  "author": "Victor Savkin",
25
26
  "license": "MIT",
26
27
  "bugs": {
@@ -29,7 +30,7 @@
29
30
  "homepage": "https://nx.dev",
30
31
  "dependencies": {
31
32
  "@zkochan/js-yaml": "0.0.7",
32
- "ejs": "^3.1.7",
33
+ "ejs": "5.0.1",
33
34
  "tslib": "^2.3.0",
34
35
  "semver": "^7.6.3",
35
36
  "yargs-parser": "21.1.1",
@@ -38,7 +39,7 @@
38
39
  },
39
40
  "devDependencies": {
40
41
  "jest": "^30.0.2",
41
- "nx": "22.7.0-pr.35019.f500fd7"
42
+ "nx": "22.7.0-pr.35356.e1b62ce"
42
43
  },
43
44
  "peerDependencies": {
44
45
  "nx": ">= 21 <= 23 || ^22.0.0-0"
@@ -48,7 +49,5 @@
48
49
  },
49
50
  "nx-migrations": {
50
51
  "migrations": "./migrations.json"
51
- },
52
- "types": "./index.d.ts",
53
- "type": "commonjs"
52
+ }
54
53
  }
package/project.json CHANGED
@@ -7,52 +7,8 @@
7
7
  "build": {
8
8
  "outputs": ["{workspaceRoot}/dist/packages/devkit/README.md"],
9
9
  "command": "node ./scripts/copy-readme.js devkit",
10
- "dependsOn": [
11
- "^build",
12
- "nx:legacy-post-build",
13
- "build-base",
14
- "legacy-post-build"
15
- ]
16
- },
17
- "legacy-post-build": {
18
- "executor": "@nx/workspace-plugin:legacy-post-build",
19
- "options": {
20
- "tsConfig": "./tsconfig.lib.json",
21
- "assets": [
22
- {
23
- "input": "packages/devkit",
24
- "glob": "**/files/**",
25
- "output": "/"
26
- },
27
- {
28
- "input": "packages/devkit",
29
- "glob": "**/files/**/.gitkeep",
30
- "output": "/"
31
- },
32
- {
33
- "input": "packages/devkit",
34
- "glob": "**/*.json",
35
- "ignore": ["**/tsconfig*.json", "project.json", ".eslintrc.json"],
36
- "output": "/"
37
- },
38
- {
39
- "input": "packages/devkit",
40
- "glob": "**/*.js",
41
- "ignore": ["**/jest.config.js"],
42
- "output": "/"
43
- },
44
- {
45
- "input": "packages/devkit",
46
- "glob": "**/*.d.ts",
47
- "output": "/"
48
- },
49
- {
50
- "input": "",
51
- "glob": "LICENSE",
52
- "output": "/"
53
- }
54
- ]
55
- }
10
+ "inputs": ["copyReadme"],
11
+ "dependsOn": ["^build", "build-base"]
56
12
  }
57
13
  }
58
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"e2e-web-server-info-utils.d.ts","sourceRoot":"","sources":["../../../../../packages/devkit/src/generators/e2e-web-server-info-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAGV,MAAM,uBAAuB,CAAC;AAI/B,UAAU,yBAAyB;IACjC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,4BAA4B,EAAE,MAAM,CAAC;IACrC,0BAA0B,EAAE,MAAM,CAAC;IACnC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,UAAU,yBAAyB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,mBAAmB;IAClC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,yBAAyB,EACxC,aAAa,EAAE,yBAAyB,EACxC,kBAAkB,EAAE,OAAO,GAC1B,OAAO,CAAC,mBAAmB,CAAC,CAmB9B"}
1
+ {"version":3,"file":"e2e-web-server-info-utils.d.ts","sourceRoot":"","sources":["../../../../../packages/devkit/src/generators/e2e-web-server-info-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAIV,MAAM,uBAAuB,CAAC;AAI/B,UAAU,yBAAyB;IACjC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,4BAA4B,EAAE,MAAM,CAAC;IACrC,0BAA0B,EAAE,MAAM,CAAC;IACnC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,UAAU,yBAAyB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,mBAAmB;IAClC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,yBAAyB,EACxC,aAAa,EAAE,yBAAyB,EACxC,kBAAkB,EAAE,OAAO,GAC1B,OAAO,CAAC,mBAAmB,CAAC,CAmB9B"}
@@ -4,7 +4,7 @@ exports.getE2EWebServerInfo = getE2EWebServerInfo;
4
4
  const devkit_exports_1 = require("nx/src/devkit-exports");
5
5
  const find_plugin_for_config_file_1 = require("../utils/find-plugin-for-config-file");
6
6
  async function getE2EWebServerInfo(tree, projectName, pluginOptions, defaultValues, isPluginBeingAdded) {
7
- const pm = (0, devkit_exports_1.getPackageManagerCommand)();
7
+ const pm = (0, devkit_exports_1.getPackageManagerCommand)((0, devkit_exports_1.detectPackageManager)(tree.root));
8
8
  if (isPluginBeingAdded) {
9
9
  return await getE2EWebServerInfoForPlugin(tree, projectName, pluginOptions, defaultValues, pm);
10
10
  }