@pinegrow/astro-module 3.0.0-beta.90 → 3.0.0-beta.91
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 +13 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +14 -2
- package/package.json +7 -3
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }// src/index.ts
|
|
2
2
|
var _vite = require('vite');
|
|
3
3
|
var _vite3 = require('unplugin-vue-components/vite'); var _vite4 = _interopRequireDefault(_vite3);
|
|
4
|
+
var _vite5 = require('unplugin-auto-import/vite'); var _vite6 = _interopRequireDefault(_vite5);
|
|
4
5
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
5
6
|
async function getViteConfiguration(moduleOptions) {
|
|
6
7
|
var _a, _b, _c, _d;
|
|
@@ -15,7 +16,18 @@ async function getViteConfiguration(moduleOptions) {
|
|
|
15
16
|
let config = {
|
|
16
17
|
plugins: vitePlugin ? [vitePlugin] : []
|
|
17
18
|
};
|
|
18
|
-
(_a = config.plugins) == null ? void 0 : _a.push(
|
|
19
|
+
(_a = config.plugins) == null ? void 0 : _a.push(
|
|
20
|
+
_vite4.default.call(void 0, { ...(moduleOptions == null ? void 0 : moduleOptions.autoImportComponents) || {} }),
|
|
21
|
+
_vite6.default.call(void 0, {
|
|
22
|
+
...(moduleOptions == null ? void 0 : moduleOptions.autoImportAPIs) || {},
|
|
23
|
+
...{
|
|
24
|
+
imports: ["vue"],
|
|
25
|
+
dirs: [],
|
|
26
|
+
vueTemplate: true,
|
|
27
|
+
cache: true
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
);
|
|
19
31
|
const ignoreList = [
|
|
20
32
|
.../* @__PURE__ */ new Set([...((_c = (_b = config == null ? void 0 : config.server) == null ? void 0 : _b.watch) == null ? void 0 : _c.ignored) || [], "**/_pgbackup/**", "**/_pginfo/**", "**/pinegrow.json"])
|
|
21
33
|
];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { AstroIntegration } from 'astro';
|
|
2
|
+
export * from 'unplugin-vue-components/types';
|
|
3
|
+
export * from 'unplugin-auto-import/types';
|
|
2
4
|
|
|
3
|
-
declare function createIntegration(moduleOptions:
|
|
5
|
+
declare function createIntegration(moduleOptions: {
|
|
6
|
+
liveDesigner: any;
|
|
7
|
+
autoImportComponents: any;
|
|
8
|
+
autoImportAPIs: any;
|
|
9
|
+
}): AstroIntegration;
|
|
4
10
|
|
|
5
11
|
export { createIntegration as default };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
2
|
import { mergeConfig } from "vite";
|
|
3
|
-
import
|
|
3
|
+
import autoImportComponents from "unplugin-vue-components/vite";
|
|
4
|
+
import autoImportAPIs from "unplugin-auto-import/vite";
|
|
4
5
|
import path from "path";
|
|
5
6
|
async function getViteConfiguration(moduleOptions) {
|
|
6
7
|
var _a, _b, _c, _d;
|
|
@@ -15,7 +16,18 @@ async function getViteConfiguration(moduleOptions) {
|
|
|
15
16
|
let config = {
|
|
16
17
|
plugins: vitePlugin ? [vitePlugin] : []
|
|
17
18
|
};
|
|
18
|
-
(_a = config.plugins) == null ? void 0 : _a.push(
|
|
19
|
+
(_a = config.plugins) == null ? void 0 : _a.push(
|
|
20
|
+
autoImportComponents({ ...(moduleOptions == null ? void 0 : moduleOptions.autoImportComponents) || {} }),
|
|
21
|
+
autoImportAPIs({
|
|
22
|
+
...(moduleOptions == null ? void 0 : moduleOptions.autoImportAPIs) || {},
|
|
23
|
+
...{
|
|
24
|
+
imports: ["vue"],
|
|
25
|
+
dirs: [],
|
|
26
|
+
vueTemplate: true,
|
|
27
|
+
cache: true
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
);
|
|
19
31
|
const ignoreList = [
|
|
20
32
|
.../* @__PURE__ */ new Set([...((_c = (_b = config == null ? void 0 : config.server) == null ? void 0 : _b.watch) == null ? void 0 : _c.ignored) || [], "**/_pgbackup/**", "**/_pginfo/**", "**/pinegrow.json"])
|
|
21
33
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pinegrow/astro-module",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.91",
|
|
4
4
|
"description": "Pinegrow Astro Module",
|
|
5
5
|
"author": "Pinegrow (http://pinegrow.com/)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
"files": [
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"main": "./dist/index.cjs",
|
|
13
|
+
"module": "./dist/index.cjs",
|
|
11
14
|
"exports": {
|
|
12
15
|
"./package.json": "./package.json",
|
|
13
16
|
".": {
|
|
@@ -28,8 +31,9 @@
|
|
|
28
31
|
"increment-beta-version": "npm version prerelease --preid=beta"
|
|
29
32
|
},
|
|
30
33
|
"dependencies": {
|
|
31
|
-
"@pinegrow/vite-plugin": "3.0.0-beta.
|
|
32
|
-
"unplugin-vue-components": "^0.24.1"
|
|
34
|
+
"@pinegrow/vite-plugin": "3.0.0-beta.91",
|
|
35
|
+
"unplugin-vue-components": "^0.24.1",
|
|
36
|
+
"unplugin-auto-import": "^0.15.2"
|
|
33
37
|
},
|
|
34
38
|
"devDependencies": {
|
|
35
39
|
"astro": "^2.1.5",
|