@astryxdesign/cli 0.7.6-canary.0ef60dd → 0.7.6-canary.1010d4c

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.
@@ -290,15 +290,21 @@ describe('--built edge cases', () => {
290
290
  });
291
291
 
292
292
  it('warns, not fails, when the file limit ends the read before any Astryx', () => {
293
- for (let i = 0; i < 20_001; i++) {
294
- const file = path.join(dir, 'a', String(i % 50), `${i}.txt`);
295
- fs.mkdirSync(path.dirname(file), {recursive: true});
296
- fs.writeFileSync(file, '');
293
+ // One more file than the read takes, spread over 50 folders. Each folder
294
+ // is made once, and each file is a link to one empty file: a file is
295
+ // one directory entry, not a recursive mkdir and a write each.
296
+ const empty = path.join(dir, 'empty.txt');
297
+ fs.writeFileSync(empty, '');
298
+ for (let folder = 0; folder < 50; folder++) {
299
+ fs.mkdirSync(path.join(dir, 'a', String(folder)), {recursive: true});
300
+ }
301
+ for (let i = 0; i < 20_000; i++) {
302
+ fs.linkSync(empty, path.join(dir, 'a', String(i % 50), `${i}.txt`));
297
303
  }
298
304
  const {usage} = check('.');
299
305
  expect(usage.status).toBe('warn');
300
306
  expect(usage.message).toContain('went unread');
301
- }, 60_000);
307
+ });
302
308
 
303
309
  it('finds a root-relative asset from the build root for a page in a subfolder', () => {
304
310
  write({
@@ -147,6 +147,14 @@ beforeEach(() => {
147
147
  tmpDir = fs.mkdtempSync(
148
148
  path.join(process.cwd(), '.astryx-template-conflicts-'),
149
149
  );
150
+ // The fixture is a package with its own TypeScript config, scoped to its
151
+ // own files. Without one, the prop check reads the repository's root
152
+ // config, as `tsc` would for a folder inside it, and compiles every
153
+ // declaration in the repository for each check.
154
+ fs.writeFileSync(
155
+ path.join(tmpDir, 'tsconfig.json'),
156
+ `${JSON.stringify({extends: '../tsconfig.json', include: ['**/*']})}\n`,
157
+ );
150
158
  });
151
159
 
152
160
  afterEach(() => {
@@ -45,6 +45,14 @@ const CLI = path.join(
45
45
 
46
46
  beforeEach(() => {
47
47
  tmpDir = fs.mkdtempSync(path.join(process.cwd(), '.astryx-validate-gaps-'));
48
+ // The fixture is a package with its own TypeScript config, scoped to its
49
+ // own files. Without one, the prop check reads the repository's root
50
+ // config, as `tsc` would for a folder inside it, and compiles every
51
+ // declaration in the repository for each check.
52
+ fs.writeFileSync(
53
+ path.join(tmpDir, 'tsconfig.json'),
54
+ `${JSON.stringify({extends: '../tsconfig.json', include: ['**/*']})}\n`,
55
+ );
48
56
  });
49
57
 
50
58
  afterEach(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/cli",
3
- "version": "0.7.6-canary.0ef60dd",
3
+ "version": "0.7.6-canary.1010d4c",
4
4
  "displayName": "CLI",
5
5
  "description": "Scaffold projects, browse templates, generate themes, and get agent-ready docs from the command line.",
6
6
  "author": "Meta Open Source",
@@ -111,10 +111,10 @@
111
111
  "zod": "^4.4.3"
112
112
  },
113
113
  "peerDependencies": {
114
- "@astryxdesign/charts": "0.7.6-canary.0ef60dd",
115
- "@astryxdesign/core": "0.7.6-canary.0ef60dd",
116
- "@astryxdesign/lab": "0.7.6-canary.0ef60dd",
117
- "@astryxdesign/theme-neutral": "0.7.6-canary.0ef60dd"
114
+ "@astryxdesign/charts": "0.7.6-canary.1010d4c",
115
+ "@astryxdesign/core": "0.7.6-canary.1010d4c",
116
+ "@astryxdesign/lab": "0.7.6-canary.1010d4c",
117
+ "@astryxdesign/theme-neutral": "0.7.6-canary.1010d4c"
118
118
  },
119
119
  "peerDependenciesMeta": {
120
120
  "@astryxdesign/charts": {
@@ -131,10 +131,10 @@
131
131
  }
132
132
  },
133
133
  "devDependencies": {
134
- "@astryxdesign/charts": "0.7.6-canary.0ef60dd",
135
- "@astryxdesign/core": "0.7.6-canary.0ef60dd",
136
- "@astryxdesign/lab": "0.7.6-canary.0ef60dd",
137
- "@astryxdesign/theme-neutral": "0.7.6-canary.0ef60dd",
134
+ "@astryxdesign/charts": "0.7.6-canary.1010d4c",
135
+ "@astryxdesign/core": "0.7.6-canary.1010d4c",
136
+ "@astryxdesign/lab": "0.7.6-canary.1010d4c",
137
+ "@astryxdesign/theme-neutral": "0.7.6-canary.1010d4c",
138
138
  "@heroicons/react": "^2.2.0",
139
139
  "@stylexjs/stylex": "^0.19.0",
140
140
  "@types/babel__core": "^7.20.5",