@atlaspack/bundle-stats 2.14.18-unified-e330ff3d9.0 → 2.14.19-unified-f92fba5b6.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @atlaspack/bundle-stats
2
2
 
3
+ ## 2.14.18
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @atlaspack/core@2.18.8
9
+ - @atlaspack/utils@2.16.1
10
+ - @atlaspack/query@2.14.18
11
+ - @atlaspack/reporter-bundle-stats@2.14.18
12
+
3
13
  ## 2.14.17
4
14
 
5
15
  ### Patch Changes
package/lib/bin.js CHANGED
@@ -1,5 +1,8 @@
1
1
  #! /usr/bin/env node
2
2
  'use strict';
3
3
 
4
+ if (process.env.ATLASPACK_SOURCES === 'true' || process.env.ATLASPACK_BUILD_ENV === 'test' || process.env.ATLASPACK_SELF_BUILD) {
5
+ require('@atlaspack/babel-register');
6
+ }
4
7
  const cli = require('./cli');
5
8
  cli.command.parse();
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  /* eslint-disable monorepo/no-internal-import */
4
- module.exports = {
4
+ module.exports = process.env.ATLASPACK_BUILD_ENV === 'production' || process.env.ATLASPACK_REGISTER_USE_LIB === 'true' ? {
5
5
  // Split up require specifier to outsmart packages/dev/babel-register/babel-plugin-module-translate.js
6
6
  // $FlowFixMe(unsupported-syntax)
7
7
  loadGraphs: require('@atlaspack/query' + '/lib/index.js').loadGraphs,
@@ -9,4 +9,8 @@ module.exports = {
9
9
  getBundleStats: require('@atlaspack/reporter-bundle-stats' + '/lib/BundleStatsReporter.js').getBundleStats,
10
10
  // $FlowFixMe(unsupported-syntax)
11
11
  PackagedBundleClass: require('@atlaspack/core' + '/lib/public/Bundle.js').PackagedBundle
12
+ } : {
13
+ loadGraphs: require('@atlaspack/query/src/index.js').loadGraphs,
14
+ getBundleStats: require('@atlaspack/reporter-bundle-stats/src/BundleStatsReporter.js').getBundleStats,
15
+ PackagedBundleClass: require('@atlaspack/core/src/public/Bundle.js').PackagedBundle
12
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/bundle-stats",
3
- "version": "2.14.18-unified-e330ff3d9.0",
3
+ "version": "2.14.19-unified-f92fba5b6.0",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -22,17 +22,17 @@
22
22
  "node": ">= 16.0.0"
23
23
  },
24
24
  "dependencies": {
25
- "@atlaspack/core": "2.18.8-unified-e330ff3d9.0",
26
- "@atlaspack/query": "2.14.18-unified-e330ff3d9.0",
27
- "@atlaspack/reporter-bundle-stats": "2.14.18-unified-e330ff3d9.0",
28
- "@atlaspack/utils": "2.16.1-unified-e330ff3d9.0",
25
+ "@atlaspack/core": "2.18.9-unified-f92fba5b6.0",
26
+ "@atlaspack/query": "2.14.19-unified-f92fba5b6.0",
27
+ "@atlaspack/reporter-bundle-stats": "2.14.19-unified-f92fba5b6.0",
28
+ "@atlaspack/utils": "2.16.2-unified-f92fba5b6.0",
29
29
  "commander": "^7.0.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@atlaspack/babel-register": "2.14.2-unified-e330ff3d9.0",
33
- "@atlaspack/types": "2.15.7-unified-e330ff3d9.0",
32
+ "@atlaspack/babel-register": "2.14.2-unified-f92fba5b6.0",
33
+ "@atlaspack/types": "2.15.8-unified-f92fba5b6.0",
34
34
  "rimraf": "^5.0.5"
35
35
  },
36
36
  "type": "commonjs",
37
- "gitHead": "e330ff3d90fbf336f87439a65e312d698433990b"
37
+ "gitHead": "f92fba5b6216e1d94cbd23f3a5d61f7188d49199"
38
38
  }
package/src/bin.js CHANGED
@@ -3,7 +3,8 @@
3
3
  'use strict';
4
4
 
5
5
  if (
6
- process.env.ATLASPACK_BUILD_ENV !== 'production' ||
6
+ process.env.ATLASPACK_SOURCES === 'true' ||
7
+ process.env.ATLASPACK_BUILD_ENV === 'test' ||
7
8
  process.env.ATLASPACK_SELF_BUILD
8
9
  ) {
9
10
  require('@atlaspack/babel-register');
@@ -4,7 +4,8 @@ import typeof {loadGraphs} from '@atlaspack/query/src/index';
4
4
  import typeof {getBundleStats} from '@atlaspack/reporter-bundle-stats/src/BundleStatsReporter';
5
5
  import typeof {PackagedBundle as PackagedBundleClass} from '@atlaspack/core/src/public/Bundle';
6
6
 
7
- module.exports = ((process.env.ATLASPACK_BUILD_ENV === 'production'
7
+ module.exports = ((process.env.ATLASPACK_BUILD_ENV === 'production' ||
8
+ process.env.ATLASPACK_REGISTER_USE_LIB === 'true'
8
9
  ? {
9
10
  // Split up require specifier to outsmart packages/dev/babel-register/babel-plugin-module-translate.js
10
11
  // $FlowFixMe(unsupported-syntax)