keycloakify 10.0.0-rc.92 → 10.0.0-rc.93

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/bin/526.index.js CHANGED
@@ -265,6 +265,7 @@ var Deferred = __webpack_require__(50689);
265
265
 
266
266
 
267
267
 
268
+
268
269
  (0,assert.assert)();
269
270
  async function appBuild(params) {
270
271
  const { buildContext } = params;
@@ -328,12 +329,21 @@ async function appBuild_webpack(params) {
328
329
  console.log(source_default().red(`Your ${scriptName} script should look like "... && keycloakify build ..."`));
329
330
  process.exit(-1);
330
331
  }
332
+ let commandCwd = buildContext.bundler.packageJsonDirPath;
331
333
  for (const subCommand of appBuildSubCommands) {
332
334
  const dIsSuccess = new Deferred.Deferred();
333
- console.log(source_default().blue(`Running: '${subCommand}'`));
334
335
  const [command, ...args] = subCommand.split(" ");
336
+ if (command === "cd") {
337
+ const [pathIsh] = args;
338
+ commandCwd = (0,getAbsoluteAndInOsFormatPath/* getAbsoluteAndInOsFormatPath */.c)({
339
+ pathIsh,
340
+ cwd: commandCwd
341
+ });
342
+ continue;
343
+ }
344
+ console.log(source_default().blue(`Running: '${subCommand}'`));
335
345
  const child = external_child_process_.spawn(command, args, {
336
- cwd: buildContext.bundler.packageJsonDirPath,
346
+ cwd: commandCwd,
337
347
  env: Object.assign(Object.assign({}, process.env), { PATH: (() => {
338
348
  var _a;
339
349
  const separator = external_path_.sep === "/" ? ":" : ";";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keycloakify",
3
- "version": "10.0.0-rc.92",
3
+ "version": "10.0.0-rc.93",
4
4
  "description": "Create Keycloak themes using React",
5
5
  "repository": {
6
6
  "type": "git",
@@ -4,6 +4,7 @@ import { assert } from "tsafe/assert";
4
4
  import type { BuildContext } from "../shared/buildContext";
5
5
  import chalk from "chalk";
6
6
  import { sep as pathSep, join as pathJoin } from "path";
7
+ import { getAbsoluteAndInOsFormatPath } from "../tools/getAbsoluteAndInOsFormatPath";
7
8
 
8
9
  export type BuildContextLike = {
9
10
  projectDirPath: string;
@@ -122,15 +123,28 @@ async function appBuild_webpack(params: {
122
123
  process.exit(-1);
123
124
  }
124
125
 
126
+ let commandCwd = buildContext.bundler.packageJsonDirPath;
127
+
125
128
  for (const subCommand of appBuildSubCommands) {
126
129
  const dIsSuccess = new Deferred<boolean>();
127
130
 
128
- console.log(chalk.blue(`Running: '${subCommand}'`));
129
-
130
131
  const [command, ...args] = subCommand.split(" ");
131
132
 
133
+ if (command === "cd") {
134
+ const [pathIsh] = args;
135
+
136
+ commandCwd = getAbsoluteAndInOsFormatPath({
137
+ pathIsh,
138
+ cwd: commandCwd
139
+ });
140
+
141
+ continue;
142
+ }
143
+
144
+ console.log(chalk.blue(`Running: '${subCommand}'`));
145
+
132
146
  const child = child_process.spawn(command, args, {
133
- cwd: buildContext.bundler.packageJsonDirPath,
147
+ cwd: commandCwd,
134
148
  env: {
135
149
  ...process.env,
136
150
  PATH: (() => {