@atlaspack/core 2.12.1-dev.3356 → 2.12.1-dev.3365

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.
@@ -947,7 +947,7 @@ class RequestTracker {
947
947
  });
948
948
  let opts = getWatcherOptions(this.options);
949
949
  let snapshotPath = _path2().default.join(this.options.cacheDir, `snapshot-${cacheKey}` + '.txt');
950
- await this.options.inputFS.writeSnapshot(this.options.watchDir, snapshotPath, opts);
950
+ await this.options.outputFS.writeSnapshot(this.options.watchDir, snapshotPath, opts);
951
951
  } catch (err) {
952
952
  // If we have aborted, ignore the error and continue
953
953
  if (!(signal !== null && signal !== void 0 && signal.aborted)) throw err;
@@ -38,7 +38,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
38
38
  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; }
39
39
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
40
40
  const NODE_MODULES = `${_path().default.sep}node_modules${_path().default.sep}`;
41
- const CONFIG = Symbol.for('atlaspack-plugin-config');
41
+ const CONFIG = Symbol.for('parcel-plugin-config');
42
42
  async function loadPlugin(pluginName, configPath, keyPath, options) {
43
43
  let resolveFrom = configPath;
44
44
  let range;
package/lib/types.js CHANGED
@@ -23,8 +23,7 @@ const ExportsCondition = exports.ExportsCondition = {
23
23
  module: 1 << 2,
24
24
  style: 1 << 12,
25
25
  sass: 1 << 13,
26
- less: 1 << 14,
27
- stylus: 1 << 15
26
+ less: 1 << 14
28
27
  };
29
28
  const BundleBehavior = exports.BundleBehavior = {
30
29
  inline: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/core",
3
- "version": "2.12.1-dev.3356+8b1a7da8f",
3
+ "version": "2.12.1-dev.3365+fc95bf726",
4
4
  "license": "MIT",
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-dev.3356+8b1a7da8f",
24
- "@atlaspack/diagnostic": "2.12.1-dev.3356+8b1a7da8f",
25
- "@atlaspack/events": "2.12.1-dev.3356+8b1a7da8f",
26
- "@atlaspack/feature-flags": "2.12.1-dev.3356+8b1a7da8f",
27
- "@atlaspack/fs": "2.12.1-dev.3356+8b1a7da8f",
28
- "@atlaspack/graph": "3.2.1-dev.3356+8b1a7da8f",
29
- "@atlaspack/logger": "2.12.1-dev.3356+8b1a7da8f",
30
- "@atlaspack/package-manager": "2.12.1-dev.3356+8b1a7da8f",
31
- "@atlaspack/plugin": "2.12.1-dev.3356+8b1a7da8f",
32
- "@atlaspack/profiler": "2.12.1-dev.3356+8b1a7da8f",
33
- "@atlaspack/rust": "2.12.1-dev.3356+8b1a7da8f",
34
- "@atlaspack/types": "2.12.1-dev.3356+8b1a7da8f",
35
- "@atlaspack/utils": "2.12.1-dev.3356+8b1a7da8f",
36
- "@atlaspack/workers": "2.12.1-dev.3356+8b1a7da8f",
23
+ "@atlaspack/cache": "2.12.1-dev.3365+fc95bf726",
24
+ "@atlaspack/diagnostic": "2.12.1-dev.3365+fc95bf726",
25
+ "@atlaspack/events": "2.12.1-dev.3365+fc95bf726",
26
+ "@atlaspack/feature-flags": "2.12.1-dev.3365+fc95bf726",
27
+ "@atlaspack/fs": "2.12.1-dev.3365+fc95bf726",
28
+ "@atlaspack/graph": "3.2.1-dev.3365+fc95bf726",
29
+ "@atlaspack/logger": "2.12.1-dev.3365+fc95bf726",
30
+ "@atlaspack/package-manager": "2.12.1-dev.3365+fc95bf726",
31
+ "@atlaspack/plugin": "2.12.1-dev.3365+fc95bf726",
32
+ "@atlaspack/profiler": "2.12.1-dev.3365+fc95bf726",
33
+ "@atlaspack/rust": "2.12.1-dev.3365+fc95bf726",
34
+ "@atlaspack/types": "2.12.1-dev.3365+fc95bf726",
35
+ "@atlaspack/utils": "2.12.1-dev.3365+fc95bf726",
36
+ "@atlaspack/workers": "2.12.1-dev.3365+fc95bf726",
37
37
  "@mischnic/json-sourcemap": "^0.1.0",
38
38
  "@parcel/source-map": "^2.1.1",
39
39
  "base-x": "^3.0.8",
@@ -55,5 +55,5 @@
55
55
  "browser": {
56
56
  "./src/serializerCore.js": "./src/serializerCore.browser.js"
57
57
  },
58
- "gitHead": "8b1a7da8f8d35174d53b02048bff9bcdb1e346f1"
58
+ "gitHead": "fc95bf7264a7c557592ab9457e8a9539571cc838"
59
59
  }
@@ -1510,7 +1510,7 @@ export default class RequestTracker {
1510
1510
  let opts = getWatcherOptions(this.options);
1511
1511
  let snapshotPath = path.join(this.options.cacheDir, snapshotKey + '.txt');
1512
1512
 
1513
- await this.options.inputFS.writeSnapshot(
1513
+ await this.options.outputFS.writeSnapshot(
1514
1514
  this.options.watchDir,
1515
1515
  snapshotPath,
1516
1516
  opts,
@@ -24,7 +24,7 @@ import {type ProjectPath, toProjectPath} from './projectPath';
24
24
  import {version as ATLASPACK_VERSION} from '../package.json';
25
25
 
26
26
  const NODE_MODULES = `${path.sep}node_modules${path.sep}`;
27
- const CONFIG = Symbol.for('atlaspack-plugin-config');
27
+ const CONFIG = Symbol.for('parcel-plugin-config');
28
28
 
29
29
  export default async function loadPlugin<T>(
30
30
  pluginName: PackageName,
package/src/types.js CHANGED
@@ -124,7 +124,6 @@ export const ExportsCondition = {
124
124
  style: 1 << 12,
125
125
  sass: 1 << 13,
126
126
  less: 1 << 14,
127
- stylus: 1 << 15,
128
127
  };
129
128
 
130
129
  export type Dependency = {|
@@ -1243,7 +1243,7 @@ describe('TargetResolver', () => {
1243
1243
  [
1244
1244
  {
1245
1245
  name: 'default',
1246
- distDir: '.atlaspack-cache/dist',
1246
+ distDir: serveDistDir,
1247
1247
  publicUrl: '/',
1248
1248
  env: {
1249
1249
  id: 'd6ea1d42532a7575',
@@ -5,7 +5,6 @@ import type {Environment, AtlaspackOptions, Target} from '../src/types';
5
5
  import {DEFAULT_FEATURE_FLAGS} from '@atlaspack/feature-flags';
6
6
  import {FSCache} from '@atlaspack/cache';
7
7
  import tempy from 'tempy';
8
- import path from 'path';
9
8
  import {inputFS, outputFS} from '@atlaspack/test-utils';
10
9
  import {relativePath} from '@atlaspack/utils';
11
10
  import {NodePackageManager} from '@atlaspack/package-manager';
@@ -17,7 +16,7 @@ export let cache: FSCache = new FSCache(outputFS, cacheDir);
17
16
  cache.ensure();
18
17
 
19
18
  export const DEFAULT_OPTIONS: AtlaspackOptions = {
20
- cacheDir: path.join(__dirname, '.atlaspack-cache'),
19
+ cacheDir,
21
20
  atlaspackVersion: '',
22
21
  watchDir: __dirname,
23
22
  watchIgnore: undefined,