workos 0.15.0 → 0.15.2
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/dist/bin.js +4 -3
- package/dist/bin.js.map +1 -1
- package/dist/commands/claim.js +1 -1
- package/dist/commands/claim.js.map +1 -1
- package/dist/commands/dev.js +5 -0
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/emulate.js +4 -0
- package/dist/commands/emulate.js.map +1 -1
- package/dist/commands/install-skill.js +7 -5
- package/dist/commands/install-skill.js.map +1 -1
- package/dist/commands/login.js +1 -1
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/migrations.d.ts +1 -1
- package/dist/commands/migrations.js +3 -1
- package/dist/commands/migrations.js.map +1 -1
- package/dist/doctor/checks/auth-patterns.js +2 -2
- package/dist/doctor/checks/auth-patterns.js.map +1 -1
- package/dist/doctor/checks/environment.js +1 -1
- package/dist/doctor/checks/environment.js.map +1 -1
- package/dist/lib/api-key.d.ts +1 -0
- package/dist/lib/api-key.js +10 -4
- package/dist/lib/api-key.js.map +1 -1
- package/dist/lib/credential-discovery.js +1 -1
- package/dist/lib/credential-discovery.js.map +1 -1
- package/dist/lib/dev-command.js +8 -1
- package/dist/lib/dev-command.js.map +1 -1
- package/dist/lib/registry.js +2 -2
- package/dist/lib/registry.js.map +1 -1
- package/dist/lib/run-with-core.js +2 -2
- package/dist/lib/run-with-core.js.map +1 -1
- package/dist/lib/validation/build-validator.js +6 -1
- package/dist/lib/validation/build-validator.js.map +1 -1
- package/dist/lib/validation/quick-checks.js +2 -0
- package/dist/lib/validation/quick-checks.js.map +1 -1
- package/dist/lib/validation/validator.js +1 -1
- package/dist/lib/validation/validator.js.map +1 -1
- package/dist/steps/run-prettier.js +9 -13
- package/dist/steps/run-prettier.js.map +1 -1
- package/dist/steps/upload-environment-variables/providers/vercel.js +6 -3
- package/dist/steps/upload-environment-variables/providers/vercel.js.map +1 -1
- package/dist/utils/clack-utils.js +22 -4
- package/dist/utils/clack-utils.js.map +1 -1
- package/dist/utils/env-parser.js +1 -1
- package/dist/utils/env-parser.js.map +1 -1
- package/dist/utils/exec-file.js +2 -1
- package/dist/utils/exec-file.js.map +1 -1
- package/dist/utils/platform.d.ts +8 -0
- package/dist/utils/platform.js +7 -0
- package/dist/utils/platform.js.map +1 -0
- package/package.json +3 -3
package/dist/bin.js
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
if (process.argv.includes('--local') || process.env.INSTALLER_DEV) {
|
|
4
4
|
const { config } = await import('dotenv');
|
|
5
5
|
// bin.ts compiles to dist/bin.js, so go up one level to find .env.local
|
|
6
|
-
|
|
6
|
+
const { fileURLToPath } = await import('node:url');
|
|
7
|
+
config({ path: fileURLToPath(new URL('../.env.local', import.meta.url)) });
|
|
7
8
|
}
|
|
8
9
|
import { satisfies } from 'semver';
|
|
9
10
|
import { red } from './utils/logging.js';
|
|
@@ -1429,10 +1430,10 @@ yargs(rawArgs)
|
|
|
1429
1430
|
'api-key': { type: 'string', describe: 'WorkOS API key' },
|
|
1430
1431
|
}), async (argv) => {
|
|
1431
1432
|
await applyInsecureStorage(argv.insecureStorage);
|
|
1432
|
-
const {
|
|
1433
|
+
const { resolveOptionalApiKey } = await import('./lib/api-key.js');
|
|
1433
1434
|
const { getMigrationsPassthroughArgs, runMigrations } = await import('./commands/migrations.js');
|
|
1434
1435
|
const passthrough = getMigrationsPassthroughArgs(rawArgs);
|
|
1435
|
-
await runMigrations(passthrough,
|
|
1436
|
+
await runMigrations(passthrough, resolveOptionalApiKey({ apiKey: argv.apiKey }));
|
|
1436
1437
|
})
|
|
1437
1438
|
.command('dashboard', false, // hidden from help
|
|
1438
1439
|
(yargs) => yargs.options(installerOptions), async (argv) => {
|