slidev-workspace 0.2.1 → 0.2.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/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { computed, ref } from "vue";
2
2
 
3
- //#region src/env.ts
3
+ //#region src/preview/constants/env.ts
4
4
  const IS_DEVELOPMENT = import.meta.env.MODE === "development";
5
5
 
6
6
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slidev-workspace",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "A workspace tool for managing multiple Slidev presentations with API-based content management",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -11,7 +11,7 @@ import {
11
11
  describe("useSlides (Development Mode)", () => {
12
12
  beforeAll(async () => {
13
13
  vi.resetModules();
14
- vi.doMock("../../env", () => ({
14
+ vi.doMock("../constants/env", () => ({
15
15
  IS_DEVELOPMENT: true,
16
16
  }));
17
17
  });
@@ -148,7 +148,7 @@ describe("useSlides (Development Mode)", () => {
148
148
  describe("useSlides (Production Mode)", () => {
149
149
  beforeAll(async () => {
150
150
  vi.resetModules();
151
- vi.doMock("../../env", () => ({
151
+ vi.doMock("../constants/env", () => ({
152
152
  IS_DEVELOPMENT: false,
153
153
  }));
154
154
  });
@@ -1,6 +1,6 @@
1
1
  import { computed, ref } from "vue";
2
2
  import type { SlideData, SlideInfo } from "../../types/slide";
3
- import { IS_DEVELOPMENT } from "../../env";
3
+ import { IS_DEVELOPMENT } from "../constants/env";
4
4
 
5
5
  /**
6
6
  * Check if a string is a valid URL
@@ -0,0 +1 @@
1
+ export const IS_DEVELOPMENT = import.meta.env.MODE === "development";