@astryxdesign/build 0.1.0 → 0.1.1-canary.a514b99

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/next.js +6 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/build",
3
- "version": "0.1.0",
3
+ "version": "0.1.1-canary.a514b99",
4
4
  "description": "Build plugins for XDS source builds — babel, PostCSS, and Vite integrations",
5
5
  "author": "Meta Open Source",
6
6
  "license": "MIT",
@@ -14,7 +14,7 @@
14
14
  "url": "https://github.com/facebook/astryx/issues"
15
15
  },
16
16
  "keywords": [
17
- "xds",
17
+ "astryx",
18
18
  "postcss",
19
19
  "stylex",
20
20
  "css-layers",
package/src/next.js CHANGED
@@ -8,8 +8,8 @@
8
8
  * Next.js configuration helper for Astryx source builds.
9
9
  *
10
10
  * Usage in next.config.mjs:
11
- * import {withXDS} from '@astryxdesign/build/next';
12
- * export default withXDS({
11
+ * import {withAstryx} from '@astryxdesign/build/next';
12
+ * export default withAstryx({
13
13
  * // your normal next config
14
14
  * });
15
15
  */
@@ -19,15 +19,15 @@
19
19
  * - Adds transpilePackages for @astryxdesign/* packages
20
20
  * - Sets conditionNames to resolve source exports
21
21
  */
22
- function withXDS(nextConfig = {}) {
23
- const xdsPackages = [
22
+ function withAstryx(nextConfig = {}) {
23
+ const astryxPackages = [
24
24
  '@astryxdesign/core',
25
25
  '@astryxdesign/theme-neutral',
26
26
  '@astryxdesign/lab',
27
27
  ];
28
28
 
29
29
  const existingTranspile = nextConfig.transpilePackages || [];
30
- const merged = Array.from(new Set([...existingTranspile, ...xdsPackages]));
30
+ const merged = Array.from(new Set([...existingTranspile, ...astryxPackages]));
31
31
 
32
32
  const existingWebpack = nextConfig.webpack;
33
33
 
@@ -60,4 +60,4 @@ function withXDS(nextConfig = {}) {
60
60
  };
61
61
  }
62
62
 
63
- module.exports = {withXDS};
63
+ module.exports = {withAstryx};