@pinegrow/vite-plugin 3.0.72 → 3.0.73-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.
@@ -154,6 +154,10 @@
154
154
 
155
155
  /*! ./permessage-deflate */
156
156
 
157
+ /*! ./plugin-watch-policy.js */
158
+
159
+ /*! ./plugin-watched-files.js */
160
+
157
161
  /*! ./polling.js */
158
162
 
159
163
  /*! ./receiver */
@@ -380,10 +384,18 @@
380
384
  !*** external "child_process" ***!
381
385
  \********************************/
382
386
 
387
+ /*!************************************!*\
388
+ !*** ./src/plugin-watch-policy.js ***!
389
+ \************************************/
390
+
383
391
  /*!*************************************!*\
384
392
  !*** ./node_modules/ws/wrapper.mjs ***!
385
393
  \*************************************/
386
394
 
395
+ /*!*************************************!*\
396
+ !*** ./src/plugin-watched-files.js ***!
397
+ \*************************************/
398
+
387
399
  /*!**************************************!*\
388
400
  !*** ../../node_modules/ms/index.js ***!
389
401
  \**************************************/
package/dist/index.mjs CHANGED
@@ -1,4 +1,8 @@
1
- import pkg from './index.cjs'
2
- var liveDesigner = pkg.liveDesigner
1
+ import { createRequire } from 'node:module'
2
+
3
+ const require = createRequire(import.meta.url)
4
+ const pkg = require('./index.cjs')
5
+ const liveDesigner = pkg.liveDesigner
6
+
3
7
  export { liveDesigner }
4
8
  export default pkg
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "@pinegrow/vite-plugin",
3
- "version": "3.0.72",
3
+ "version": "3.0.73-alpha.0",
4
4
  "description": "Pinegrow Vite Plugin",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
8
- "./types.d.ts"
8
+ "./types.d.ts",
9
+ "./astro.d.ts",
10
+ "./astro-runtime.d.ts"
9
11
  ],
10
12
  "main": "./dist/index.cjs",
11
13
  "module": "./dist/index.mjs",
@@ -15,13 +17,23 @@
15
17
  "types": "./types.d.ts",
16
18
  "import": "./dist/index.mjs",
17
19
  "require": "./dist/index.cjs"
18
- },
19
- "./dev": {
20
- "import": "./src/index.dev.js",
21
- "require": "./src/index.dev.js"
22
- },
20
+ },
21
+ "./dev": {
22
+ "import": "./src/index.dev.js",
23
+ "require": "./src/index.dev.js"
24
+ },
23
25
  "./vue": {
24
26
  "import": "./dist/vue/index.js"
27
+ },
28
+ "./astro": {
29
+ "types": "./astro.d.ts",
30
+ "import": "./dist/astro/index.mjs",
31
+ "require": "./dist/astro/index.cjs"
32
+ },
33
+ "./astro/runtime": {
34
+ "types": "./astro-runtime.d.ts",
35
+ "import": "./dist/astro/runtime.mjs",
36
+ "require": "./dist/astro/runtime.cjs"
25
37
  }
26
38
  },
27
39
  "keywords": [
@@ -38,6 +50,9 @@
38
50
  "build": "webpack -- --env mode=production vite",
39
51
  "build:vite-plugin": "webpack -- --env mode=production vite",
40
52
  "build:vite-plugin:dev": "webpack -- --env mode=development vite",
53
+ "test": "node --test test/*.test.mjs",
54
+ "publish-alpha": "npm run increment-alpha-version && npm publish --tag alpha",
55
+ "increment-alpha-version": "npm version prerelease --preid=alpha",
41
56
  "publish-beta": "npm run increment-beta-version && npm publish --tag beta",
42
57
  "increment-beta-version": "npm version prerelease --preid=beta",
43
58
  "publish-patch": "npm run increment-version && npm publish",
@@ -46,5 +61,8 @@
46
61
  "dependencies": {
47
62
  "@vue/compiler-sfc": "^3.2.45",
48
63
  "magic-string": "^0.27.0"
64
+ },
65
+ "devDependencies": {
66
+ "@astrojs/compiler": "^2.2.1"
49
67
  }
50
68
  }