@pinegrow/astro-module 3.0.75 → 3.0.76-alpha.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/index.cjs +2 -1
- package/dist/index.d.ts +10 -3
- package/dist/index.js +2 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }// src/index.ts
|
|
2
2
|
async function getViteConfiguration(moduleOptions) {
|
|
3
|
+
var _a;
|
|
3
4
|
let vitePlugin;
|
|
4
5
|
try {
|
|
5
|
-
const { liveDesigner } = await Promise.resolve().then(() => _interopRequireWildcard(require("./live-designer-PEHWBCFL.cjs")));
|
|
6
|
+
const { liveDesigner } = ((_a = moduleOptions == null ? void 0 : moduleOptions.liveDesigner) == null ? void 0 : _a.devSource) === true ? await Promise.resolve().then(() => _interopRequireWildcard(require("./live-designer.dev-TFTYQC6Q.cjs"))) : await Promise.resolve().then(() => _interopRequireWildcard(require("./live-designer-PEHWBCFL.cjs")));
|
|
6
7
|
vitePlugin = liveDesigner({
|
|
7
8
|
...(moduleOptions == null ? void 0 : moduleOptions.liveDesigner) || {}
|
|
8
9
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import { AstroIntegration } from 'astro';
|
|
2
2
|
import { LiveDesignerOptions } from '@pinegrow/vite-plugin';
|
|
3
3
|
|
|
4
|
+
interface PinegrowLiveDesignerOptions extends LiveDesignerOptions {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
/**
|
|
7
|
+
* Use @pinegrow/vite-plugin/dev so local development can import the
|
|
8
|
+
* Vite plugin source and dev-connector source without bundling them.
|
|
9
|
+
* Keep this false for packaged builds.
|
|
10
|
+
*/
|
|
11
|
+
devSource?: boolean;
|
|
12
|
+
}
|
|
4
13
|
interface PinegrowAstroModuleOptions {
|
|
5
14
|
/**
|
|
6
15
|
* Pinegrow Live Designer options
|
|
7
16
|
* For details, check https://vuedesigner.com
|
|
8
17
|
*/
|
|
9
|
-
liveDesigner?:
|
|
10
|
-
[key in string]?: any;
|
|
11
|
-
} & LiveDesignerOptions;
|
|
18
|
+
liveDesigner?: PinegrowLiveDesignerOptions;
|
|
12
19
|
}
|
|
13
20
|
declare function createIntegration(moduleOptions: PinegrowAstroModuleOptions): AstroIntegration;
|
|
14
21
|
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
2
|
async function getViteConfiguration(moduleOptions) {
|
|
3
|
+
var _a;
|
|
3
4
|
let vitePlugin;
|
|
4
5
|
try {
|
|
5
|
-
const { liveDesigner } = await import("./live-designer-TIVRM3WS.js");
|
|
6
|
+
const { liveDesigner } = ((_a = moduleOptions == null ? void 0 : moduleOptions.liveDesigner) == null ? void 0 : _a.devSource) === true ? await import("./live-designer.dev-RGVBS7YX.js") : await import("./live-designer-TIVRM3WS.js");
|
|
6
7
|
vitePlugin = liveDesigner({
|
|
7
8
|
...(moduleOptions == null ? void 0 : moduleOptions.liveDesigner) || {}
|
|
8
9
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pinegrow/astro-module",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.76-alpha.0",
|
|
4
4
|
"description": "Pinegrow Astro Module",
|
|
5
5
|
"author": "Pinegrow (http://pinegrow.com/)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"increment-version": "npm version patch"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@pinegrow/vite-plugin": "3.0.
|
|
41
|
+
"@pinegrow/vite-plugin": "3.0.76-alpha.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"astro": "^3.0.0",
|