@elevasis/sdk 1.2.0 → 1.3.0

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/cli.cjs CHANGED
@@ -43917,7 +43917,7 @@ function wrapAction(commandName, fn) {
43917
43917
  // package.json
43918
43918
  var package_default = {
43919
43919
  name: "@elevasis/sdk",
43920
- version: "1.2.0",
43920
+ version: "1.3.0",
43921
43921
  description: "SDK for building Elevasis organization resources",
43922
43922
  type: "module",
43923
43923
  bin: {
@@ -43944,9 +43944,11 @@ var package_default = {
43944
43944
  "reference/"
43945
43945
  ],
43946
43946
  scripts: {
43947
- build: `node -e "require('fs').rmSync('dist',{recursive:true,force:true})" && tsc -p tsconfig.core-dts.json && tsc -p tsconfig.build.json && tsup && rollup -c rollup.dts.config.mjs && esbuild src/cli/index.ts --bundle --platform=node --outfile=dist/cli.cjs --format=cjs --external:esbuild --banner:js="#!/usr/bin/env node" && node scripts/copy-reference-docs.mjs && node scripts/generate-navigation.mjs`,
43948
- "check-types": "tsc --noEmit",
43949
- "test:bundle": "pnpm build && vitest run --config vitest.bundle.config.ts"
43947
+ build: `node -e "require('fs').rmSync('dist',{recursive:true,force:true})" && tsc -p tsconfig.core-dts.json && tsc -p tsconfig.build.json && tsup && rollup -c rollup.dts.config.mjs && esbuild src/cli/index.ts --bundle --platform=node --outfile=dist/cli.cjs --format=cjs --external:esbuild --banner:js="#!/usr/bin/env node" && node scripts/copy-reference-docs.mjs && node ../../scripts/monorepo/generate-reference-artifacts.js`,
43948
+ "type-check": "tsc --noEmit",
43949
+ "check-types": "pnpm type-check",
43950
+ test: "pnpm build && node ../../scripts/monorepo/validate-reference-artifacts.js && vitest run --config vitest.bundle.config.ts",
43951
+ "test:bundle": "pnpm test"
43950
43952
  },
43951
43953
  dependencies: {
43952
43954
  esbuild: "^0.25.0"
@@ -44041,6 +44043,7 @@ function bumpVersion(current, type) {
44041
44043
  }
44042
44044
  var IGNORED_DOC_DIRS = /* @__PURE__ */ new Set([".archive"]);
44043
44045
  async function scanDocumentation(docsDir) {
44046
+ if (docsDir === false) return void 0;
44044
44047
  const resolvedDocsDir = (0, import_path2.resolve)(docsDir ?? "docs");
44045
44048
  const files = [];
44046
44049
  let totalSize = 0;
@@ -44337,6 +44340,14 @@ function registerCheckCommand(program3) {
44337
44340
  const entryPath = options2.entry ?? "./src/index.ts";
44338
44341
  const spinner = ora("Validating resources...").start();
44339
44342
  try {
44343
+ let elevasConfig = {};
44344
+ try {
44345
+ const configModule = await loadTsModule("elevasis.config.ts");
44346
+ if (configModule.default && typeof configModule.default === "object") {
44347
+ elevasConfig = configModule.default;
44348
+ }
44349
+ } catch {
44350
+ }
44340
44351
  const entryModule = await loadTsModule(entryPath);
44341
44352
  const org = entryModule.default;
44342
44353
  if (!org) {
@@ -44368,7 +44379,7 @@ function registerCheckCommand(program3) {
44368
44379
  if (relationshipCount > 0) {
44369
44380
  console.log(source_default.gray(` Relationships: ${relationshipCount}`));
44370
44381
  }
44371
- const documentation = await scanDocumentation();
44382
+ const documentation = await scanDocumentation(elevasConfig.docsDir);
44372
44383
  if (documentation) {
44373
44384
  console.log(
44374
44385
  source_default.gray(` Docs: ${documentation.length} file${documentation.length !== 1 ? "s" : ""}`)