@atls/code-schematics 2.0.24 → 2.0.25

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.
@@ -137,6 +137,7 @@ const assertGeneratedFixture = async (fixtureDir) => {
137
137
  };
138
138
  const runSchematicSmoke = async () => {
139
139
  const repoRoot = await findRepoRoot(process.cwd());
140
+ console.log('Schematic smoke: checking inactive commands');
140
141
  await assertInactiveCommandsAreNotInvoked(repoRoot);
141
142
  const tmpRoot = await fs.mkdtemp(path.join(os.tmpdir(), 'raijin-schematic-smoke-'));
142
143
  const collectionDir = path.join(tmpRoot, 'collection');
@@ -145,28 +146,36 @@ const runSchematicSmoke = async () => {
145
146
  await fs.mkdir(collectionDir, { recursive: true });
146
147
  await fs.mkdir(fixtureDir, { recursive: true });
147
148
  await writeFixturePackage(fixtureDir);
149
+ console.log('Schematic smoke: writing collection');
148
150
  await writeTmpSchematicHelper(collectionDir);
151
+ console.log('Schematic smoke: preparing collection');
149
152
  await prepareCollectionDir(repoRoot, collectionDir);
153
+ console.log('Schematic smoke: running project schematic');
150
154
  await runProjectSchematic({
151
155
  collectionPath: path.join(collectionDir, 'collection.json'),
152
156
  fixtureDir,
153
157
  });
158
+ console.log('Schematic smoke: checking fixture');
154
159
  await assertGeneratedFixture(fixtureDir);
155
160
  }
156
161
  finally {
157
162
  await fs.rm(tmpRoot, { recursive: true, force: true });
158
163
  }
159
164
  };
160
- try {
161
- await runSchematicSmoke();
162
- console.log('Schematic smoke passed');
163
- }
164
- catch (error) {
165
- if (error instanceof Error) {
166
- console.error(error.message);
167
- }
168
- else {
169
- console.error(error);
170
- }
171
- process.exitCode = 1;
172
- }
165
+ const main = async () => {
166
+ try {
167
+ await runSchematicSmoke();
168
+ console.log('Schematic smoke passed');
169
+ return 0;
170
+ }
171
+ catch (error) {
172
+ if (error instanceof Error) {
173
+ console.error(error.message);
174
+ }
175
+ else {
176
+ console.error(error);
177
+ }
178
+ return 1;
179
+ }
180
+ };
181
+ process.exit(await main());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atls/code-schematics",
3
- "version": "2.0.24",
3
+ "version": "2.0.25",
4
4
  "license": "BSD-3-Clause",
5
5
  "type": "module",
6
6
  "exports": {
@@ -29,7 +29,7 @@
29
29
  "strip-json-comments": "3.1.1"
30
30
  },
31
31
  "devDependencies": {
32
- "@atls/code-runtime": "2.1.29",
32
+ "@atls/code-runtime": "2.1.30",
33
33
  "@types/node": "24.12.2",
34
34
  "@yarnpkg/cli": "4.14.1",
35
35
  "@yarnpkg/core": "4.7.0",