@atlaspack/core 2.12.1-canary.3541 → 2.12.1-canary.3542
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.
|
@@ -130,6 +130,7 @@ function getAssetGraph(serializedGraph, options) {
|
|
|
130
130
|
}
|
|
131
131
|
return envId;
|
|
132
132
|
};
|
|
133
|
+
const dependencyMap = new Map();
|
|
133
134
|
for (let node of serializedGraph.nodes) {
|
|
134
135
|
if (node.type === 'root') {
|
|
135
136
|
let index = graph.addNodeByContentKey('@@root', {
|
|
@@ -148,6 +149,12 @@ function getAssetGraph(serializedGraph, options) {
|
|
|
148
149
|
} else if (node.type === 'asset') {
|
|
149
150
|
let asset = node.value;
|
|
150
151
|
let id = asset.id;
|
|
152
|
+
let deps = dependencyMap.get(id);
|
|
153
|
+
if (!deps) {
|
|
154
|
+
deps = new Map();
|
|
155
|
+
dependencyMap.set(id, deps);
|
|
156
|
+
}
|
|
157
|
+
asset.dependencies = deps;
|
|
151
158
|
asset.committed = true;
|
|
152
159
|
asset.contentKey = id;
|
|
153
160
|
asset.env.id = getEnvId(asset.env);
|
|
@@ -176,6 +183,12 @@ function getAssetGraph(serializedGraph, options) {
|
|
|
176
183
|
} else if (node.type === 'dependency') {
|
|
177
184
|
let id = node.value.id;
|
|
178
185
|
let dependency = node.value.dependency;
|
|
186
|
+
let deps = dependencyMap.get(dependency.sourceAssetId);
|
|
187
|
+
if (!deps) {
|
|
188
|
+
deps = new Map();
|
|
189
|
+
dependencyMap.set(dependency.sourceAssetId, deps);
|
|
190
|
+
}
|
|
191
|
+
deps.set(id, dependency);
|
|
179
192
|
dependency.id = id;
|
|
180
193
|
dependency.env.id = getEnvId(dependency.env);
|
|
181
194
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/core",
|
|
3
|
-
"version": "2.12.1-canary.
|
|
3
|
+
"version": "2.12.1-canary.3542+7e69a8f22",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -20,21 +20,21 @@
|
|
|
20
20
|
"check-ts": "tsc --noEmit index.d.ts"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@atlaspack/build-cache": "2.12.1-canary.
|
|
24
|
-
"@atlaspack/cache": "2.12.1-canary.
|
|
25
|
-
"@atlaspack/diagnostic": "2.12.1-canary.
|
|
26
|
-
"@atlaspack/events": "2.12.1-canary.
|
|
27
|
-
"@atlaspack/feature-flags": "2.12.1-canary.
|
|
28
|
-
"@atlaspack/fs": "2.12.1-canary.
|
|
29
|
-
"@atlaspack/graph": "3.2.1-canary.
|
|
30
|
-
"@atlaspack/logger": "2.12.1-canary.
|
|
31
|
-
"@atlaspack/package-manager": "2.12.1-canary.
|
|
32
|
-
"@atlaspack/plugin": "2.12.1-canary.
|
|
33
|
-
"@atlaspack/profiler": "2.12.1-canary.
|
|
34
|
-
"@atlaspack/rust": "2.12.1-canary.
|
|
35
|
-
"@atlaspack/types": "2.12.1-canary.
|
|
36
|
-
"@atlaspack/utils": "2.12.1-canary.
|
|
37
|
-
"@atlaspack/workers": "2.12.1-canary.
|
|
23
|
+
"@atlaspack/build-cache": "2.12.1-canary.3542+7e69a8f22",
|
|
24
|
+
"@atlaspack/cache": "2.12.1-canary.3542+7e69a8f22",
|
|
25
|
+
"@atlaspack/diagnostic": "2.12.1-canary.3542+7e69a8f22",
|
|
26
|
+
"@atlaspack/events": "2.12.1-canary.3542+7e69a8f22",
|
|
27
|
+
"@atlaspack/feature-flags": "2.12.1-canary.3542+7e69a8f22",
|
|
28
|
+
"@atlaspack/fs": "2.12.1-canary.3542+7e69a8f22",
|
|
29
|
+
"@atlaspack/graph": "3.2.1-canary.3542+7e69a8f22",
|
|
30
|
+
"@atlaspack/logger": "2.12.1-canary.3542+7e69a8f22",
|
|
31
|
+
"@atlaspack/package-manager": "2.12.1-canary.3542+7e69a8f22",
|
|
32
|
+
"@atlaspack/plugin": "2.12.1-canary.3542+7e69a8f22",
|
|
33
|
+
"@atlaspack/profiler": "2.12.1-canary.3542+7e69a8f22",
|
|
34
|
+
"@atlaspack/rust": "2.12.1-canary.3542+7e69a8f22",
|
|
35
|
+
"@atlaspack/types": "2.12.1-canary.3542+7e69a8f22",
|
|
36
|
+
"@atlaspack/utils": "2.12.1-canary.3542+7e69a8f22",
|
|
37
|
+
"@atlaspack/workers": "2.12.1-canary.3542+7e69a8f22",
|
|
38
38
|
"@mischnic/json-sourcemap": "^0.1.0",
|
|
39
39
|
"@parcel/source-map": "^2.1.1",
|
|
40
40
|
"base-x": "^3.0.8",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"browser": {
|
|
67
67
|
"./src/serializerCore.js": "./src/serializerCore.browser.js"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "7e69a8f2298af6f62608abe6dfd7c5108744a961"
|
|
70
70
|
}
|
|
@@ -147,6 +147,8 @@ function getAssetGraph(serializedGraph, options) {
|
|
|
147
147
|
return envId;
|
|
148
148
|
};
|
|
149
149
|
|
|
150
|
+
const dependencyMap = new Map();
|
|
151
|
+
|
|
150
152
|
for (let node of serializedGraph.nodes) {
|
|
151
153
|
if (node.type === 'root') {
|
|
152
154
|
let index = graph.addNodeByContentKey('@@root', {
|
|
@@ -168,6 +170,13 @@ function getAssetGraph(serializedGraph, options) {
|
|
|
168
170
|
let asset = node.value;
|
|
169
171
|
let id = asset.id;
|
|
170
172
|
|
|
173
|
+
let deps = dependencyMap.get(id);
|
|
174
|
+
if (!deps) {
|
|
175
|
+
deps = new Map();
|
|
176
|
+
dependencyMap.set(id, deps);
|
|
177
|
+
}
|
|
178
|
+
asset.dependencies = deps;
|
|
179
|
+
|
|
171
180
|
asset.committed = true;
|
|
172
181
|
asset.contentKey = id;
|
|
173
182
|
asset.env.id = getEnvId(asset.env);
|
|
@@ -201,6 +210,13 @@ function getAssetGraph(serializedGraph, options) {
|
|
|
201
210
|
let id = node.value.id;
|
|
202
211
|
let dependency = node.value.dependency;
|
|
203
212
|
|
|
213
|
+
let deps = dependencyMap.get(dependency.sourceAssetId);
|
|
214
|
+
if (!deps) {
|
|
215
|
+
deps = new Map();
|
|
216
|
+
dependencyMap.set(dependency.sourceAssetId, deps);
|
|
217
|
+
}
|
|
218
|
+
deps.set(id, dependency);
|
|
219
|
+
|
|
204
220
|
dependency.id = id;
|
|
205
221
|
dependency.env.id = getEnvId(dependency.env);
|
|
206
222
|
|