trigger.dev 0.0.0-v3-trigger-dirs-20240423091017 → 0.0.0-v3-trigger-dirs-20240423123825

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/index.js CHANGED
@@ -783,9 +783,9 @@ import { context, trace as trace2 } from "@opentelemetry/api";
783
783
  import {
784
784
  TaskMetadataFailedToParseData,
785
785
  detectDependencyVersion,
786
- flattenAttributes as flattenAttributes2,
787
- recordSpanException as recordSpanException4
786
+ flattenAttributes as flattenAttributes2
788
787
  } from "@trigger.dev/core/v3";
788
+ import { recordSpanException as recordSpanException4 } from "@trigger.dev/core/v3/workers";
789
789
  import chalk5 from "chalk";
790
790
  import { Option as CommandOption } from "commander";
791
791
  import { build as build2 } from "esbuild";
@@ -800,7 +800,7 @@ import invariant from "tiny-invariant";
800
800
  import { z as z4 } from "zod";
801
801
 
802
802
  // package.json
803
- var version = "0.0.0-v3-trigger-dirs-20240423091017";
803
+ var version = "0.0.0-v3-trigger-dirs-20240423123825";
804
804
  var dependencies = {
805
805
  "@clack/prompts": "^0.7.0",
806
806
  "@depot/cli": "0.0.1-cli.2.55.0",
@@ -816,7 +816,7 @@ var dependencies = {
816
816
  "@opentelemetry/sdk-trace-base": "^1.22.0",
817
817
  "@opentelemetry/sdk-trace-node": "^1.22.0",
818
818
  "@opentelemetry/semantic-conventions": "^1.22.0",
819
- "@trigger.dev/core": "workspace:0.0.0-v3-trigger-dirs-20240423091017",
819
+ "@trigger.dev/core": "workspace:0.0.0-v3-trigger-dirs-20240423123825",
820
820
  "@types/degit": "^2.8.3",
821
821
  chalk: "^5.2.0",
822
822
  chokidar: "^3.5.3",
@@ -1141,7 +1141,8 @@ async function zodfetch(schema, url, requestInit) {
1141
1141
  }
1142
1142
 
1143
1143
  // src/cli/common.ts
1144
- import { flattenAttributes, recordSpanException } from "@trigger.dev/core/v3";
1144
+ import { flattenAttributes } from "@trigger.dev/core/v3";
1145
+ import { recordSpanException } from "@trigger.dev/core/v3/workers";
1145
1146
  import { z } from "zod";
1146
1147
 
1147
1148
  // src/telemetry/tracing.ts
@@ -1854,7 +1855,7 @@ async function setPackageJsonDeps(path7, deps) {
1854
1855
 
1855
1856
  // src/commands/login.ts
1856
1857
  import { intro as intro2, log as log2, outro as outro2, select } from "@clack/prompts";
1857
- import { recordSpanException as recordSpanException3 } from "@trigger.dev/core/v3";
1858
+ import { recordSpanException as recordSpanException3 } from "@trigger.dev/core/v3/workers";
1858
1859
 
1859
1860
  // ../../node_modules/.pnpm/open@10.0.3/node_modules/open/index.js
1860
1861
  import process6 from "node:process";
@@ -2404,7 +2405,7 @@ import { z as z3 } from "zod";
2404
2405
  import { intro, note } from "@clack/prompts";
2405
2406
 
2406
2407
  // src/utilities/session.ts
2407
- import { recordSpanException as recordSpanException2 } from "@trigger.dev/core/v3";
2408
+ import { recordSpanException as recordSpanException2 } from "@trigger.dev/core/v3/workers";
2408
2409
  var tracer2 = getTracer();
2409
2410
  async function isLoggedIn(profile = "default") {
2410
2411
  return await tracer2.startActiveSpan("isLoggedIn", async (span) => {
@@ -2788,7 +2789,7 @@ function bundleTriggerDevCore(buildIdentifier, tsconfigPath) {
2788
2789
  name: "trigger-bundle-core",
2789
2790
  setup(build3) {
2790
2791
  build3.onResolve({ filter: /.*/ }, (args) => {
2791
- if (args.path !== "@trigger.dev/core/v3") {
2792
+ if (!args.path.startsWith("@trigger.dev/core/v3")) {
2792
2793
  return void 0;
2793
2794
  }
2794
2795
  const triggerSdkPath = __require.resolve("@trigger.dev/sdk/v3", { paths: [process.cwd()] });
@@ -2796,17 +2797,14 @@ function bundleTriggerDevCore(buildIdentifier, tsconfigPath) {
2796
2797
  ...args,
2797
2798
  triggerSdkPath
2798
2799
  });
2799
- const resolvedPath = __require.resolve("@trigger.dev/core/v3", {
2800
+ const resolvedPath = __require.resolve(args.path, {
2800
2801
  paths: [triggerSdkPath]
2801
2802
  });
2802
- logger.debug(
2803
- `[${buildIdentifier}][trigger-bundle-core] Externalizing @trigger.dev/core/v3`,
2804
- {
2805
- ...args,
2806
- triggerSdkPath,
2807
- resolvedPath
2808
- }
2809
- );
2803
+ logger.debug(`[${buildIdentifier}][trigger-bundle-core] Externalizing ${args.path}`, {
2804
+ ...args,
2805
+ triggerSdkPath,
2806
+ resolvedPath
2807
+ });
2810
2808
  return {
2811
2809
  path: resolvedPath,
2812
2810
  external: false
@@ -5843,10 +5841,8 @@ async function findPnpmNodeModulesPath() {
5843
5841
  // src/commands/init.ts
5844
5842
  import { intro as intro4, isCancel, log as log4, outro as outro4, select as select2, text } from "@clack/prompts";
5845
5843
  import { context as context3, trace as trace3 } from "@opentelemetry/api";
5846
- import {
5847
- flattenAttributes as flattenAttributes3,
5848
- recordSpanException as recordSpanException5
5849
- } from "@trigger.dev/core/v3";
5844
+ import { flattenAttributes as flattenAttributes3 } from "@trigger.dev/core/v3";
5845
+ import { recordSpanException as recordSpanException5 } from "@trigger.dev/core/v3/workers";
5850
5846
  import chalk6 from "chalk";
5851
5847
  import { execa as execa3 } from "execa";
5852
5848
  import { applyEdits, modify } from "jsonc-parser";