@nx/rollup 22.6.3 → 22.6.5
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": "22.6.
|
|
3
|
+
"version": "22.6.5",
|
|
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": "22.6.
|
|
33
|
-
"@nx/js": "22.6.
|
|
32
|
+
"@nx/devkit": "22.6.5",
|
|
33
|
+
"@nx/js": "22.6.5",
|
|
34
34
|
"@rollup/plugin-babel": "^6.0.4",
|
|
35
35
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
36
36
|
"@rollup/plugin-image": "^3.0.3",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"autoprefixer": "^10.4.9",
|
|
41
41
|
"concat-with-sourcemaps": "^1.1.0",
|
|
42
42
|
"picocolors": "^1.1.0",
|
|
43
|
-
"picomatch": "4.0.
|
|
43
|
+
"picomatch": "4.0.4",
|
|
44
44
|
"postcss": "^8.4.38",
|
|
45
45
|
"postcss-modules": "^6.0.1",
|
|
46
46
|
"rollup": "^4.14.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"tslib": "^2.3.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"nx": "22.6.
|
|
51
|
+
"nx": "22.6.5",
|
|
52
52
|
"source-map-js": "^1.2.0"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/rollup/src/plugins/plugin.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,kBAAkB,EAGvB,aAAa,EAOd,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/rollup/src/plugins/plugin.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,kBAAkB,EAGvB,aAAa,EAOd,MAAM,YAAY,CAAC;AAsBpB;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,kBAEhC,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAID,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC,mBAAmB,CAkC1D,CAAC;AAEF,eAAO,MAAM,aAAa,oCAAc,CAAC"}
|
package/src/plugins/plugin.js
CHANGED
|
@@ -11,7 +11,6 @@ const get_named_inputs_1 = require("@nx/devkit/src/utils/get-named-inputs");
|
|
|
11
11
|
const file_hasher_1 = require("nx/src/hasher/file-hasher");
|
|
12
12
|
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
13
13
|
const util_1 = require("@nx/js/src/plugins/typescript/util");
|
|
14
|
-
const pmc = (0, devkit_1.getPackageManagerCommand)();
|
|
15
14
|
function readTargetsCache(cachePath) {
|
|
16
15
|
return (0, fs_1.existsSync)(cachePath) ? (0, devkit_1.readJsonFile)(cachePath) : {};
|
|
17
16
|
}
|
|
@@ -34,8 +33,9 @@ exports.createNodes = [
|
|
|
34
33
|
const cachePath = (0, path_1.join)(cache_directory_1.workspaceDataDirectory, `rollup-${optionsHash}.hash`);
|
|
35
34
|
const targetsCache = readTargetsCache(cachePath);
|
|
36
35
|
const isTsSolutionSetup = (0, ts_solution_setup_1.isUsingTsSolutionSetup)();
|
|
36
|
+
const pmc = (0, devkit_1.getPackageManagerCommand)((0, devkit_1.detectPackageManager)(context.workspaceRoot));
|
|
37
37
|
try {
|
|
38
|
-
return await (0, devkit_1.createNodesFromFiles)((configFile, _, context) => createNodesInternal(configFile, normalizedOptions, context, targetsCache, isTsSolutionSetup), configFilePaths, normalizedOptions, context);
|
|
38
|
+
return await (0, devkit_1.createNodesFromFiles)((configFile, _, context) => createNodesInternal(configFile, normalizedOptions, context, targetsCache, isTsSolutionSetup, pmc), configFilePaths, normalizedOptions, context);
|
|
39
39
|
}
|
|
40
40
|
finally {
|
|
41
41
|
writeTargetsToCache(cachePath, targetsCache);
|
|
@@ -43,7 +43,7 @@ exports.createNodes = [
|
|
|
43
43
|
},
|
|
44
44
|
];
|
|
45
45
|
exports.createNodesV2 = exports.createNodes;
|
|
46
|
-
async function createNodesInternal(configFilePath, options, context, targetsCache, isTsSolutionSetup) {
|
|
46
|
+
async function createNodesInternal(configFilePath, options, context, targetsCache, isTsSolutionSetup, pmc) {
|
|
47
47
|
const projectRoot = (0, path_1.dirname)(configFilePath);
|
|
48
48
|
const fullyQualifiedProjectRoot = (0, path_1.join)(context.workspaceRoot, projectRoot);
|
|
49
49
|
// Do not create a project if package.json and project.json do not exist
|
|
@@ -53,7 +53,7 @@ async function createNodesInternal(configFilePath, options, context, targetsCach
|
|
|
53
53
|
return {};
|
|
54
54
|
}
|
|
55
55
|
const hash = await (0, calculate_hash_for_create_nodes_1.calculateHashForCreateNodes)(projectRoot, options, context, [(0, js_1.getLockFileName)((0, devkit_1.detectPackageManager)(context.workspaceRoot))]);
|
|
56
|
-
targetsCache[hash] ??= await buildRollupTarget(configFilePath, projectRoot, options, context, isTsSolutionSetup);
|
|
56
|
+
targetsCache[hash] ??= await buildRollupTarget(configFilePath, projectRoot, options, context, isTsSolutionSetup, pmc);
|
|
57
57
|
return {
|
|
58
58
|
projects: {
|
|
59
59
|
[projectRoot]: {
|
|
@@ -63,7 +63,7 @@ async function createNodesInternal(configFilePath, options, context, targetsCach
|
|
|
63
63
|
},
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
-
async function buildRollupTarget(configFilePath, projectRoot, options, context, isTsSolutionSetup) {
|
|
66
|
+
async function buildRollupTarget(configFilePath, projectRoot, options, context, isTsSolutionSetup, pmc) {
|
|
67
67
|
let loadConfigFile;
|
|
68
68
|
try {
|
|
69
69
|
// Try to load the workspace version of rollup first (it should already exist).
|