@textadventures/vite-plugin-squiffy 0.1.3 → 0.1.4

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,3 +1,4 @@
1
+ export type __squiffy_types_ref = typeof import('@textadventures/squiffy-types');
1
2
  import { type Plugin } from 'vite';
2
3
  export interface SquiffyPluginOptions {
3
4
  /** Log transformed file paths (defaults to false). */
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@textadventures/vite-plugin-squiffy",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
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/types.d.ts",
8
+ "types": "./dist/index.d.ts",
9
9
  "exports": {
10
10
  ".": {
11
- "types": "./dist/types.d.ts",
11
+ "types": "./dist/index.d.ts",
12
12
  "import": "./dist/index.js"
13
13
  }
14
14
  },
@@ -18,7 +18,7 @@
18
18
  "README.md"
19
19
  ],
20
20
  "scripts": {
21
- "build": "tsc -p tsconfig.json && shx cp src/types.d.ts ./dist/",
21
+ "build": "tsc -p tsconfig.json",
22
22
  "dev": "tsc -w -p tsconfig.json",
23
23
  "prepublishOnly": "npm run build"
24
24
  },
@@ -28,6 +28,7 @@
28
28
  "node": ">=18.0.0"
29
29
  },
30
30
  "dependencies": {
31
+ "@textadventures/squiffy-types": "^0.1.0",
31
32
  "squiffy-packager": "^6.0.0-alpha.5"
32
33
  },
33
34
  "peerDependencies": {
package/dist/types.d.ts DELETED
@@ -1,8 +0,0 @@
1
- declare global {
2
- declare module '*.squiffy' {
3
- export const story: any;
4
- const _default: any;
5
- export default _default;
6
- }
7
- }
8
- export {};