@textadventures/vite-plugin-squiffy 0.1.1 → 0.1.3

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.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import './types';
2
1
  import { type Plugin } from 'vite';
3
2
  export interface SquiffyPluginOptions {
4
3
  /** Log transformed file paths (defaults to false). */
package/dist/index.js CHANGED
@@ -1,4 +1,3 @@
1
- import './types';
2
1
  import { compileFile } from 'squiffy-packager';
3
2
  export default function squiffyPlugin(options = {}) {
4
3
  const { verbose = false } = options;
package/dist/types.d.ts CHANGED
@@ -1,5 +1,8 @@
1
- declare module '*.squiffy' {
2
- export const story: any;
1
+ declare global {
2
+ declare module '*.squiffy' {
3
+ export const story: any;
4
+ const _default: any;
5
+ export default _default;
6
+ }
3
7
  }
4
-
5
8
  export {};
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@textadventures/vite-plugin-squiffy",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Vite plugin to compile .squiffy files",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
8
- "types": "./dist/index.d.ts",
8
+ "types": "./dist/types.d.ts",
9
9
  "exports": {
10
10
  ".": {
11
- "types": "./dist/index.d.ts",
11
+ "types": "./dist/types.d.ts",
12
12
  "import": "./dist/index.js"
13
13
  }
14
14
  },