@nx/rollup 21.4.0-beta.11 → 21.4.0-beta.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/rollup",
3
- "version": "21.4.0-beta.11",
3
+ "version": "21.4.0-beta.12",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Rollup contains executors and generators that support building applications using Rollup.",
6
6
  "repository": {
@@ -29,8 +29,8 @@
29
29
  "migrations": "./migrations.json"
30
30
  },
31
31
  "dependencies": {
32
- "@nx/devkit": "21.4.0-beta.11",
33
- "@nx/js": "21.4.0-beta.11",
32
+ "@nx/devkit": "21.4.0-beta.12",
33
+ "@nx/js": "21.4.0-beta.12",
34
34
  "@rollup/plugin-babel": "^6.0.4",
35
35
  "@rollup/plugin-commonjs": "^25.0.7",
36
36
  "@rollup/plugin-image": "^3.0.3",
@@ -48,7 +48,7 @@
48
48
  "tslib": "^2.3.0"
49
49
  },
50
50
  "devDependencies": {
51
- "nx": "21.4.0-beta.11"
51
+ "nx": "21.4.0-beta.12"
52
52
  },
53
53
  "publishConfig": {
54
54
  "access": "public"
@@ -71,12 +71,12 @@ function normalizeAssets(assets, root, sourceRoot) {
71
71
  function normalizeRelativePaths(projectRoot, options) {
72
72
  for (const [fieldName, fieldValue] of Object.entries(options)) {
73
73
  if (isRelativePath(fieldValue)) {
74
- options[fieldName] = (0, node_path_1.join)(projectRoot, fieldValue);
74
+ options[fieldName] = (0, devkit_1.normalizePath)((0, node_path_1.join)(projectRoot, fieldValue));
75
75
  }
76
76
  else if (Array.isArray(fieldValue)) {
77
77
  for (let i = 0; i < fieldValue.length; i++) {
78
78
  if (isRelativePath(fieldValue[i])) {
79
- fieldValue[i] = (0, node_path_1.join)(projectRoot, fieldValue[i]);
79
+ fieldValue[i] = (0, devkit_1.normalizePath)((0, node_path_1.join)(projectRoot, fieldValue[i]));
80
80
  }
81
81
  }
82
82
  }
@@ -1 +1 @@
1
- {"version":3,"file":"with-nx.d.ts","sourceRoot":"","sources":["../../../../../../packages/rollup/src/plugins/with-nx/with-nx.ts"],"names":[],"mappings":"AAQA,OAAO,EAIL,6BAA6B,EAC9B,MAAM,uCAAuC,CAAC;AAW/C,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAOjC,OAAO,EAAoB,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AA2BhF,wBAAgB,MAAM,CACpB,UAAU,EAAE,yBAAyB,EACrC,YAAY,GAAE,MAAM,CAAC,aAAkB,EAEvC,YAAY,CAAC,EAAE,6BAA6B,EAAE,GAC7C,MAAM,CAAC,aAAa,CA0RtB"}
1
+ {"version":3,"file":"with-nx.d.ts","sourceRoot":"","sources":["../../../../../../packages/rollup/src/plugins/with-nx/with-nx.ts"],"names":[],"mappings":"AASA,OAAO,EAIL,6BAA6B,EAC9B,MAAM,uCAAuC,CAAC;AAW/C,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAOjC,OAAO,EAAoB,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AA2BhF,wBAAgB,MAAM,CACpB,UAAU,EAAE,yBAAyB,EACrC,YAAY,GAAE,MAAM,CAAC,aAAkB,EAEvC,YAAY,CAAC,EAAE,6BAA6B,EAAE,GAC7C,MAAM,CAAC,aAAa,CA0RtB"}
@@ -255,9 +255,9 @@ function createInput(options) {
255
255
  return {};
256
256
  const mainEntryFileName = options.outputFileName || options.main;
257
257
  const input = {};
258
- input[(0, node_path_1.parse)(mainEntryFileName).name] = (0, node_path_1.join)(devkit_1.workspaceRoot, options.main);
258
+ input[(0, node_path_1.parse)(mainEntryFileName).name] = (0, devkit_1.normalizePath)((0, node_path_1.join)(devkit_1.workspaceRoot, options.main));
259
259
  options.additionalEntryPoints?.forEach((entry) => {
260
- input[(0, node_path_1.parse)(entry).name] = (0, node_path_1.join)(devkit_1.workspaceRoot, entry);
260
+ input[(0, node_path_1.parse)(entry).name] = (0, devkit_1.normalizePath)((0, node_path_1.join)(devkit_1.workspaceRoot, entry));
261
261
  });
262
262
  return input;
263
263
  }