@jay-framework/vite-plugin 0.6.7 → 0.6.9

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -6
  2. package/package.json +8 -7
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const rollupPlugin = require("@jay-framework/rollup-plugin");
1
+ import { JayPluginContext, jayRuntime as jayRuntime$1 } from "@jay-framework/rollup-plugin";
4
2
  function jayRuntime(jayOptions = {}) {
5
- const jayContext = new rollupPlugin.JayPluginContext(jayOptions);
3
+ const jayContext = new JayPluginContext(jayOptions);
6
4
  return {
7
5
  enforce: "pre",
8
- ...rollupPlugin.jayRuntime(jayOptions, jayContext)
6
+ ...jayRuntime$1(jayOptions, jayContext)
9
7
  };
10
8
  }
11
- exports.jayRuntime = jayRuntime;
9
+ export {
10
+ jayRuntime
11
+ };
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@jay-framework/vite-plugin",
3
- "version": "0.6.7",
3
+ "version": "0.6.9",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
+ "type": "module",
6
7
  "keywords": [
7
8
  "jay",
8
9
  "secure",
@@ -16,7 +17,7 @@
16
17
  "build": "npm run build:js && npm run build:types",
17
18
  "build:watch": "npm run build:js -- --watch & npm run build:types -- --watch",
18
19
  "build:js": "vite build",
19
- "build:types": "tsup lib/index.ts --dts-only --format cjs",
20
+ "build:types": "tsup lib/index.ts --dts-only --format esm",
20
21
  "build:check-types": "tsc",
21
22
  "clean": "rimraf dist",
22
23
  "confirm": "npm run clean && npm run build && npm run build:check-types && npm run test",
@@ -24,13 +25,13 @@
24
25
  "test:watch": ":"
25
26
  },
26
27
  "dependencies": {
27
- "@jay-framework/rollup-plugin": "^0.6.7"
28
+ "@jay-framework/rollup-plugin": "^0.6.9"
28
29
  },
29
30
  "devDependencies": {
30
- "@jay-framework/component": "^0.6.7",
31
- "@jay-framework/dev-environment": "^0.6.7",
32
- "@jay-framework/runtime": "^0.6.7",
33
- "@jay-framework/secure": "^0.6.7",
31
+ "@jay-framework/component": "^0.6.9",
32
+ "@jay-framework/dev-environment": "^0.6.9",
33
+ "@jay-framework/runtime": "^0.6.9",
34
+ "@jay-framework/secure": "^0.6.9",
34
35
  "@types/node": "^20.11.5",
35
36
  "tsup": "^8.0.1",
36
37
  "typescript": "^5.3.3",