@atlaspack/core 2.12.1-canary.3465 → 2.12.1-canary.3467
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/lib/Atlaspack.js +2 -2
- package/lib/AtlaspackConfig.js +2 -2
- package/lib/Transformation.js +1 -1
- package/lib/Validation.js +1 -1
- package/lib/registerCoreWithSerializer.js +2 -2
- package/lib/requests/AtlaspackConfigRequest.js +5 -5
- package/lib/requests/PathRequest.js +1 -1
- package/lib/requests/ValidationRequest.js +2 -2
- package/lib/requests/WriteBundleRequest.js +1 -1
- package/lib/worker.js +2 -2
- package/package.json +16 -16
- package/src/Atlaspack.js +1 -1
- package/src/AtlaspackConfig.js +1 -1
- package/src/PackagerRunner.js +1 -1
- package/src/Transformation.js +1 -1
- package/src/Validation.js +1 -1
- package/src/applyRuntimes.js +1 -1
- package/src/registerCoreWithSerializer.js +1 -1
- package/src/requests/AtlaspackConfigRequest.js +2 -2
- package/src/requests/BundleGraphRequest.js +1 -1
- package/src/requests/DevDepRequest.js +1 -1
- package/src/requests/PathRequest.js +1 -2
- package/src/requests/ValidationRequest.js +1 -1
- package/src/requests/WriteBundleRequest.js +1 -1
- package/src/worker.js +1 -1
- package/test/AtlaspackConfig.test.js +6 -3
- package/test/AtlaspackConfigRequest.test.js +6 -3
package/lib/Atlaspack.js
CHANGED
|
@@ -64,7 +64,7 @@ function _utils2() {
|
|
|
64
64
|
};
|
|
65
65
|
return data;
|
|
66
66
|
}
|
|
67
|
-
var _AtlaspackConfig =
|
|
67
|
+
var _AtlaspackConfig = require("./AtlaspackConfig");
|
|
68
68
|
function _logger() {
|
|
69
69
|
const data = _interopRequireDefault(require("@atlaspack/logger"));
|
|
70
70
|
_logger = function () {
|
|
@@ -203,7 +203,7 @@ class Atlaspack {
|
|
|
203
203
|
let {
|
|
204
204
|
config
|
|
205
205
|
} = await (0, _AtlaspackConfigRequest.loadAtlaspackConfig)(resolvedOptions);
|
|
206
|
-
this.#config = new _AtlaspackConfig.
|
|
206
|
+
this.#config = new _AtlaspackConfig.AtlaspackConfig(config, resolvedOptions);
|
|
207
207
|
if (this.#initialOptions.workerFarm) {
|
|
208
208
|
if (this.#initialOptions.workerFarm.ending) {
|
|
209
209
|
throw new Error('Supplied WorkerFarm is ending');
|
package/lib/AtlaspackConfig.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.AtlaspackConfig = void 0;
|
|
7
7
|
function _diagnostic() {
|
|
8
8
|
const data = _interopRequireWildcard(require("@atlaspack/diagnostic"));
|
|
9
9
|
_diagnostic = function () {
|
|
@@ -289,7 +289,7 @@ class AtlaspackConfig {
|
|
|
289
289
|
});
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
|
-
exports.
|
|
292
|
+
exports.AtlaspackConfig = AtlaspackConfig;
|
|
293
293
|
function getConfigPaths(options, nodes) {
|
|
294
294
|
return nodes.map(node => node !== '...' ? getConfigPath(options, node) : null).filter(Boolean);
|
|
295
295
|
}
|
package/lib/Transformation.js
CHANGED
|
@@ -47,7 +47,7 @@ function _utils() {
|
|
|
47
47
|
return data;
|
|
48
48
|
}
|
|
49
49
|
var _Dependency = require("./Dependency");
|
|
50
|
-
var _AtlaspackConfig =
|
|
50
|
+
var _AtlaspackConfig = require("./AtlaspackConfig");
|
|
51
51
|
var _PathRequest = require("./requests/PathRequest");
|
|
52
52
|
var _Asset = require("./public/Asset");
|
|
53
53
|
var _UncommittedAsset = _interopRequireDefault(require("./UncommittedAsset"));
|
package/lib/Validation.js
CHANGED
|
@@ -32,7 +32,7 @@ function _diagnostic() {
|
|
|
32
32
|
};
|
|
33
33
|
return data;
|
|
34
34
|
}
|
|
35
|
-
var _AtlaspackConfig =
|
|
35
|
+
var _AtlaspackConfig = require("./AtlaspackConfig");
|
|
36
36
|
var _UncommittedAsset = _interopRequireDefault(require("./UncommittedAsset"));
|
|
37
37
|
var _assetUtils = require("./assetUtils");
|
|
38
38
|
var _Asset = require("./public/Asset");
|
|
@@ -14,7 +14,7 @@ function _graph() {
|
|
|
14
14
|
var _serializer = require("./serializer");
|
|
15
15
|
var _AssetGraph = _interopRequireDefault(require("./AssetGraph"));
|
|
16
16
|
var _BundleGraph = _interopRequireDefault(require("./BundleGraph"));
|
|
17
|
-
var _AtlaspackConfig =
|
|
17
|
+
var _AtlaspackConfig = require("./AtlaspackConfig");
|
|
18
18
|
var _RequestTracker = require("./RequestTracker");
|
|
19
19
|
var _Config = _interopRequireDefault(require("./public/Config"));
|
|
20
20
|
var _package = _interopRequireDefault(require("../package.json"));
|
|
@@ -35,7 +35,7 @@ function registerCoreWithSerializer() {
|
|
|
35
35
|
Config: _Config.default,
|
|
36
36
|
BundleGraph: _BundleGraph.default,
|
|
37
37
|
Graph: _graph().Graph,
|
|
38
|
-
AtlaspackConfig: _AtlaspackConfig.
|
|
38
|
+
AtlaspackConfig: _AtlaspackConfig.AtlaspackConfig,
|
|
39
39
|
RequestGraph: _RequestTracker.RequestGraph
|
|
40
40
|
// $FlowFixMe[unclear-type]
|
|
41
41
|
})) {
|
|
@@ -53,12 +53,12 @@ function _assert() {
|
|
|
53
53
|
};
|
|
54
54
|
return data;
|
|
55
55
|
}
|
|
56
|
-
var _AtlaspackConfig =
|
|
57
|
-
var
|
|
58
|
-
var _AtlaspackConfig2 = _interopRequireDefault(require("../AtlaspackConfig"));
|
|
56
|
+
var _AtlaspackConfig = require("../AtlaspackConfig");
|
|
57
|
+
var _AtlaspackConfig2 = _interopRequireDefault(require("../AtlaspackConfig.schema"));
|
|
59
58
|
var _buildCache = require("../buildCache");
|
|
60
59
|
var _projectPath = require("../projectPath");
|
|
61
60
|
var _RequestTracker = require("../RequestTracker");
|
|
61
|
+
var _utils2 = require("../utils");
|
|
62
62
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
63
63
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
64
64
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -113,7 +113,7 @@ function getCachedAtlaspackConfig(result, options) {
|
|
|
113
113
|
if (config) {
|
|
114
114
|
return config;
|
|
115
115
|
}
|
|
116
|
-
config = new
|
|
116
|
+
config = new _AtlaspackConfig.AtlaspackConfig(processedConfig, options);
|
|
117
117
|
atlaspackConfigCache.set(cachePath, config);
|
|
118
118
|
return config;
|
|
119
119
|
}
|
|
@@ -396,7 +396,7 @@ function validateConfigFile(config, relativePath) {
|
|
|
396
396
|
}
|
|
397
397
|
});
|
|
398
398
|
}
|
|
399
|
-
_utils().validateSchema.diagnostic(
|
|
399
|
+
_utils().validateSchema.diagnostic(_AtlaspackConfig2.default, {
|
|
400
400
|
data: config,
|
|
401
401
|
filePath: relativePath
|
|
402
402
|
}, '@atlaspack/core', 'Invalid Parcel Config');
|
|
@@ -43,7 +43,7 @@ function _utils() {
|
|
|
43
43
|
var _ReporterRunner = require("../ReporterRunner");
|
|
44
44
|
var _Dependency = require("../public/Dependency");
|
|
45
45
|
var _PluginOptions = _interopRequireDefault(require("../public/PluginOptions"));
|
|
46
|
-
var _AtlaspackConfig =
|
|
46
|
+
var _AtlaspackConfig = require("../AtlaspackConfig");
|
|
47
47
|
var _AtlaspackConfigRequest = _interopRequireWildcard(require("./AtlaspackConfigRequest"));
|
|
48
48
|
var _utils2 = require("../utils");
|
|
49
49
|
var _projectPath = require("../projectPath");
|
|
@@ -11,7 +11,7 @@ function _nullthrows() {
|
|
|
11
11
|
};
|
|
12
12
|
return data;
|
|
13
13
|
}
|
|
14
|
-
var _AtlaspackConfig =
|
|
14
|
+
var _AtlaspackConfig = require("../AtlaspackConfig");
|
|
15
15
|
var _ReporterRunner = require("../ReporterRunner");
|
|
16
16
|
var _Validation = _interopRequireDefault(require("../Validation"));
|
|
17
17
|
var _AtlaspackConfigRequest = _interopRequireDefault(require("./AtlaspackConfigRequest"));
|
|
@@ -34,7 +34,7 @@ function createValidationRequest(input) {
|
|
|
34
34
|
config: processedConfig,
|
|
35
35
|
cachePath
|
|
36
36
|
} = (0, _nullthrows().default)(await api.runRequest((0, _AtlaspackConfigRequest.default)()));
|
|
37
|
-
let config = new _AtlaspackConfig.
|
|
37
|
+
let config = new _AtlaspackConfig.AtlaspackConfig(processedConfig, options);
|
|
38
38
|
let trackedRequestsDesc = assetRequests.filter(request => {
|
|
39
39
|
return config.getValidatorNames(request.filePath).length > 0;
|
|
40
40
|
});
|
|
@@ -45,7 +45,7 @@ function _logger() {
|
|
|
45
45
|
return data;
|
|
46
46
|
}
|
|
47
47
|
var _DevDepRequest = require("./DevDepRequest");
|
|
48
|
-
var _AtlaspackConfig =
|
|
48
|
+
var _AtlaspackConfig = require("../AtlaspackConfig");
|
|
49
49
|
function _diagnostic() {
|
|
50
50
|
const data = _interopRequireWildcard(require("@atlaspack/diagnostic"));
|
|
51
51
|
_diagnostic = function () {
|
package/lib/worker.js
CHANGED
|
@@ -35,7 +35,7 @@ var _Transformation = _interopRequireDefault(require("./Transformation"));
|
|
|
35
35
|
var _ReporterRunner = require("./ReporterRunner");
|
|
36
36
|
var _PackagerRunner = _interopRequireDefault(require("./PackagerRunner"));
|
|
37
37
|
var _Validation = _interopRequireDefault(require("./Validation"));
|
|
38
|
-
var _AtlaspackConfig =
|
|
38
|
+
var _AtlaspackConfig = require("./AtlaspackConfig");
|
|
39
39
|
var _registerCoreWithSerializer = require("./registerCoreWithSerializer");
|
|
40
40
|
var _buildCache = require("./buildCache");
|
|
41
41
|
function _sourceMap() {
|
|
@@ -98,7 +98,7 @@ async function loadConfig(cachePath, options) {
|
|
|
98
98
|
return config;
|
|
99
99
|
}
|
|
100
100
|
let processedConfig = (0, _nullthrows().default)(await options.cache.get(cachePath));
|
|
101
|
-
config = new _AtlaspackConfig.
|
|
101
|
+
config = new _AtlaspackConfig.AtlaspackConfig(processedConfig, options);
|
|
102
102
|
atlaspackConfigCache.set(cachePath, config);
|
|
103
103
|
(0, _featureFlags().setFeatureFlags)(options.featureFlags);
|
|
104
104
|
return config;
|
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.3467+a47b7c439",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -20,20 +20,20 @@
|
|
|
20
20
|
"check-ts": "tsc --noEmit index.d.ts"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@atlaspack/cache": "2.12.1-canary.
|
|
24
|
-
"@atlaspack/diagnostic": "2.12.1-canary.
|
|
25
|
-
"@atlaspack/events": "2.12.1-canary.
|
|
26
|
-
"@atlaspack/feature-flags": "2.12.1-canary.
|
|
27
|
-
"@atlaspack/fs": "2.12.1-canary.
|
|
28
|
-
"@atlaspack/graph": "3.2.1-canary.
|
|
29
|
-
"@atlaspack/logger": "2.12.1-canary.
|
|
30
|
-
"@atlaspack/package-manager": "2.12.1-canary.
|
|
31
|
-
"@atlaspack/plugin": "2.12.1-canary.
|
|
32
|
-
"@atlaspack/profiler": "2.12.1-canary.
|
|
33
|
-
"@atlaspack/rust": "2.12.1-canary.
|
|
34
|
-
"@atlaspack/types": "2.12.1-canary.
|
|
35
|
-
"@atlaspack/utils": "2.12.1-canary.
|
|
36
|
-
"@atlaspack/workers": "2.12.1-canary.
|
|
23
|
+
"@atlaspack/cache": "2.12.1-canary.3467+a47b7c439",
|
|
24
|
+
"@atlaspack/diagnostic": "2.12.1-canary.3467+a47b7c439",
|
|
25
|
+
"@atlaspack/events": "2.12.1-canary.3467+a47b7c439",
|
|
26
|
+
"@atlaspack/feature-flags": "2.12.1-canary.3467+a47b7c439",
|
|
27
|
+
"@atlaspack/fs": "2.12.1-canary.3467+a47b7c439",
|
|
28
|
+
"@atlaspack/graph": "3.2.1-canary.3467+a47b7c439",
|
|
29
|
+
"@atlaspack/logger": "2.12.1-canary.3467+a47b7c439",
|
|
30
|
+
"@atlaspack/package-manager": "2.12.1-canary.3467+a47b7c439",
|
|
31
|
+
"@atlaspack/plugin": "2.12.1-canary.3467+a47b7c439",
|
|
32
|
+
"@atlaspack/profiler": "2.12.1-canary.3467+a47b7c439",
|
|
33
|
+
"@atlaspack/rust": "2.12.1-canary.3467+a47b7c439",
|
|
34
|
+
"@atlaspack/types": "2.12.1-canary.3467+a47b7c439",
|
|
35
|
+
"@atlaspack/utils": "2.12.1-canary.3467+a47b7c439",
|
|
36
|
+
"@atlaspack/workers": "2.12.1-canary.3467+a47b7c439",
|
|
37
37
|
"@mischnic/json-sourcemap": "^0.1.0",
|
|
38
38
|
"@parcel/source-map": "^2.1.1",
|
|
39
39
|
"base-x": "^3.0.8",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"browser": {
|
|
65
65
|
"./src/serializerCore.js": "./src/serializerCore.browser.js"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "a47b7c4391964f7eaeea763acb5a12865c8bdfe8"
|
|
68
68
|
}
|
package/src/Atlaspack.js
CHANGED
|
@@ -31,7 +31,7 @@ import resolveOptions from './resolveOptions';
|
|
|
31
31
|
import {ValueEmitter} from '@atlaspack/events';
|
|
32
32
|
import {registerCoreWithSerializer} from './registerCoreWithSerializer';
|
|
33
33
|
import {PromiseQueue} from '@atlaspack/utils';
|
|
34
|
-
import AtlaspackConfig from './AtlaspackConfig';
|
|
34
|
+
import {AtlaspackConfig} from './AtlaspackConfig';
|
|
35
35
|
import logger from '@atlaspack/logger';
|
|
36
36
|
import RequestTracker, {
|
|
37
37
|
getWatcherOptions,
|
package/src/AtlaspackConfig.js
CHANGED
package/src/PackagerRunner.js
CHANGED
|
@@ -18,7 +18,7 @@ import type {
|
|
|
18
18
|
ReportFn,
|
|
19
19
|
RequestInvalidation,
|
|
20
20
|
} from './types';
|
|
21
|
-
import type AtlaspackConfig,
|
|
21
|
+
import type {AtlaspackConfig, LoadedPlugin} from './AtlaspackConfig';
|
|
22
22
|
import type InternalBundleGraph from './BundleGraph';
|
|
23
23
|
import type {ConfigRequest} from './requests/ConfigRequest';
|
|
24
24
|
import type {DevDepSpecifier} from './requests/DevDepRequest';
|
package/src/Transformation.js
CHANGED
|
@@ -35,7 +35,7 @@ import ThrowableDiagnostic, {
|
|
|
35
35
|
import {SOURCEMAP_EXTENSIONS} from '@atlaspack/utils';
|
|
36
36
|
|
|
37
37
|
import {createDependency} from './Dependency';
|
|
38
|
-
import AtlaspackConfig from './AtlaspackConfig';
|
|
38
|
+
import {AtlaspackConfig} from './AtlaspackConfig';
|
|
39
39
|
// TODO: eventually call path request as sub requests
|
|
40
40
|
import {ResolverRunner} from './requests/PathRequest';
|
|
41
41
|
import {
|
package/src/Validation.js
CHANGED
|
@@ -9,7 +9,7 @@ import path from 'path';
|
|
|
9
9
|
import {resolveConfig} from '@atlaspack/utils';
|
|
10
10
|
import logger, {PluginLogger} from '@atlaspack/logger';
|
|
11
11
|
import ThrowableDiagnostic, {errorToDiagnostic} from '@atlaspack/diagnostic';
|
|
12
|
-
import AtlaspackConfig from './AtlaspackConfig';
|
|
12
|
+
import {AtlaspackConfig} from './AtlaspackConfig';
|
|
13
13
|
import UncommittedAsset from './UncommittedAsset';
|
|
14
14
|
import {createAsset} from './assetUtils';
|
|
15
15
|
import {Asset} from './public/Asset';
|
package/src/applyRuntimes.js
CHANGED
|
@@ -11,7 +11,7 @@ import type {
|
|
|
11
11
|
DevDepRequest,
|
|
12
12
|
AtlaspackOptions,
|
|
13
13
|
} from './types';
|
|
14
|
-
import type AtlaspackConfig from './AtlaspackConfig';
|
|
14
|
+
import type {AtlaspackConfig} from './AtlaspackConfig';
|
|
15
15
|
import type PluginOptions from './public/PluginOptions';
|
|
16
16
|
import type {RequestResult, RunAPI} from './RequestTracker';
|
|
17
17
|
|
|
@@ -3,7 +3,7 @@ import {Graph} from '@atlaspack/graph';
|
|
|
3
3
|
import {registerSerializableClass} from './serializer';
|
|
4
4
|
import AssetGraph from './AssetGraph';
|
|
5
5
|
import BundleGraph from './BundleGraph';
|
|
6
|
-
import AtlaspackConfig from './AtlaspackConfig';
|
|
6
|
+
import {AtlaspackConfig} from './AtlaspackConfig';
|
|
7
7
|
import {RequestGraph} from './RequestTracker';
|
|
8
8
|
import Config from './public/Config';
|
|
9
9
|
import packageJson from '../package.json';
|
|
@@ -33,12 +33,12 @@ import {parse} from 'json5';
|
|
|
33
33
|
import path from 'path';
|
|
34
34
|
import invariant from 'assert';
|
|
35
35
|
|
|
36
|
+
import {AtlaspackConfig} from '../AtlaspackConfig';
|
|
36
37
|
import AtlaspackConfigSchema from '../AtlaspackConfig.schema';
|
|
37
|
-
import {optionsProxy} from '../utils';
|
|
38
|
-
import AtlaspackConfig from '../AtlaspackConfig';
|
|
39
38
|
import {createBuildCache} from '../buildCache';
|
|
40
39
|
import {toProjectPath} from '../projectPath';
|
|
41
40
|
import {requestTypes} from '../RequestTracker';
|
|
41
|
+
import {optionsProxy} from '../utils';
|
|
42
42
|
|
|
43
43
|
type ConfigMap<K, V> = {[K]: V, ...};
|
|
44
44
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import type {Async, Bundle as IBundle, Namer} from '@atlaspack/types';
|
|
4
4
|
import type {SharedReference} from '@atlaspack/workers';
|
|
5
|
-
import type AtlaspackConfig,
|
|
5
|
+
import type {AtlaspackConfig, LoadedPlugin} from '../AtlaspackConfig';
|
|
6
6
|
import type {StaticRunOpts, RunAPI} from '../RequestTracker';
|
|
7
7
|
import type {
|
|
8
8
|
Asset,
|
|
@@ -28,7 +28,7 @@ import {normalizePath} from '@atlaspack/utils';
|
|
|
28
28
|
import {report} from '../ReporterRunner';
|
|
29
29
|
import {getPublicDependency} from '../public/Dependency';
|
|
30
30
|
import PluginOptions from '../public/PluginOptions';
|
|
31
|
-
import AtlaspackConfig from '../AtlaspackConfig';
|
|
31
|
+
import {AtlaspackConfig, type LoadedPlugin} from '../AtlaspackConfig';
|
|
32
32
|
import createAtlaspackConfigRequest, {
|
|
33
33
|
getCachedAtlaspackConfig,
|
|
34
34
|
} from './AtlaspackConfigRequest';
|
|
@@ -41,7 +41,6 @@ import {
|
|
|
41
41
|
} from '../projectPath';
|
|
42
42
|
import {Priority} from '../types';
|
|
43
43
|
import {createBuildCache} from '../buildCache';
|
|
44
|
-
import type {LoadedPlugin} from '../AtlaspackConfig';
|
|
45
44
|
import {createConfig} from '../InternalConfig';
|
|
46
45
|
import {loadPluginConfig, runConfigRequest} from './ConfigRequest';
|
|
47
46
|
import {
|
|
@@ -6,7 +6,7 @@ import type {AssetGroup} from '../types';
|
|
|
6
6
|
import type {ConfigAndCachePath} from './AtlaspackConfigRequest';
|
|
7
7
|
|
|
8
8
|
import nullthrows from 'nullthrows';
|
|
9
|
-
import AtlaspackConfig from '../AtlaspackConfig';
|
|
9
|
+
import {AtlaspackConfig} from '../AtlaspackConfig';
|
|
10
10
|
import {report} from '../ReporterRunner';
|
|
11
11
|
import Validation from '../Validation';
|
|
12
12
|
import createAtlaspackConfigRequest from './AtlaspackConfigRequest';
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
createDevDependency,
|
|
37
37
|
runDevDepRequest,
|
|
38
38
|
} from './DevDepRequest';
|
|
39
|
-
import AtlaspackConfig from '../AtlaspackConfig';
|
|
39
|
+
import {AtlaspackConfig} from '../AtlaspackConfig';
|
|
40
40
|
import ThrowableDiagnostic, {errorToDiagnostic} from '@atlaspack/diagnostic';
|
|
41
41
|
import {PluginTracer, tracer} from '@atlaspack/profiler';
|
|
42
42
|
import {requestTypes} from '../RequestTracker';
|
package/src/worker.js
CHANGED
|
@@ -20,7 +20,7 @@ import Transformation, {
|
|
|
20
20
|
import {reportWorker, report} from './ReporterRunner';
|
|
21
21
|
import PackagerRunner, {type RunPackagerRunnerResult} from './PackagerRunner';
|
|
22
22
|
import Validation, {type ValidationOpts} from './Validation';
|
|
23
|
-
import AtlaspackConfig from './AtlaspackConfig';
|
|
23
|
+
import {AtlaspackConfig} from './AtlaspackConfig';
|
|
24
24
|
import {registerCoreWithSerializer} from './registerCoreWithSerializer';
|
|
25
25
|
import {clearBuildCaches} from './buildCache';
|
|
26
26
|
import {init as initSourcemaps} from '@parcel/source-map';
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
// @flow strict-local
|
|
2
2
|
|
|
3
|
-
import AtlaspackConfig from '../src/AtlaspackConfig';
|
|
4
3
|
import assert from 'assert';
|
|
5
4
|
import path from 'path';
|
|
6
|
-
|
|
5
|
+
|
|
7
6
|
import logger from '@atlaspack/logger';
|
|
8
7
|
import {inputFS} from '@atlaspack/test-utils';
|
|
8
|
+
import sinon from 'sinon';
|
|
9
|
+
|
|
10
|
+
import {AtlaspackConfig} from '../src/AtlaspackConfig';
|
|
11
|
+
import {toProjectPath} from '../src/projectPath';
|
|
9
12
|
import {parseAndProcessConfig} from '../src/requests/AtlaspackConfigRequest';
|
|
13
|
+
|
|
10
14
|
import {DEFAULT_OPTIONS} from './test-utils';
|
|
11
|
-
import {toProjectPath} from '../src/projectPath';
|
|
12
15
|
|
|
13
16
|
const ATLASPACKRC_PATH = toProjectPath('/', '/.parcelrc');
|
|
14
17
|
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
// @flow
|
|
2
2
|
import assert from 'assert';
|
|
3
|
-
import nullthrows from 'nullthrows';
|
|
4
3
|
import path from 'path';
|
|
5
|
-
|
|
4
|
+
|
|
5
|
+
import nullthrows from 'nullthrows';
|
|
6
|
+
|
|
7
|
+
import {AtlaspackConfig} from '../src/AtlaspackConfig';
|
|
8
|
+
import {toProjectPath} from '../src/projectPath';
|
|
6
9
|
import {
|
|
7
10
|
validateConfigFile,
|
|
8
11
|
mergePipelines,
|
|
@@ -13,8 +16,8 @@ import {
|
|
|
13
16
|
resolveAtlaspackConfig,
|
|
14
17
|
processConfig,
|
|
15
18
|
} from '../src/requests/AtlaspackConfigRequest';
|
|
19
|
+
|
|
16
20
|
import {DEFAULT_OPTIONS, relative} from './test-utils';
|
|
17
|
-
import {toProjectPath} from '../src/projectPath';
|
|
18
21
|
|
|
19
22
|
describe('AtlaspackConfigRequest', () => {
|
|
20
23
|
describe('validateConfigFile', () => {
|