tonka-vite-plugin 1.10.0 → 1.11.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.
package/bin/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import fs from 'fs';
2
- export default function(source) {
2
+ export default function() {
3
3
  return {
4
4
  name: 'rollup-plugin-tonka-vite',
5
5
  transformIndexHtml: {
6
- order: 'pre',
7
- async handler() {
8
- return await fs.promises.readFile(source, 'utf8');
9
- }
6
+ order: 'pre',
7
+ async handler() {
8
+ return await fs.promises.readFile('./resources/views/app.twig.php', 'utf8');
9
+ }
10
10
  }
11
- }
11
+ }
12
12
  }
package/lib/index.d.ts CHANGED
@@ -1 +1,7 @@
1
- /// <reference types="typescript" />
1
+ /**
2
+ * Do an index transform
3
+ *
4
+ * @param string source
5
+ * @return Promise<string>
6
+ */
7
+ export default () => Promise<string>
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "tonka-vite-plugin",
3
- "version": "1.10.0",
3
+ "version": "1.11.0",
4
4
  "description": "Tonka vite plugin for Inertia",
5
- "main": "index.js",
5
+ "main": "./bin/index.js",
6
6
  "types": "./lib/index.d.ts",
7
7
  "scripts": {
8
8
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -21,4 +21,4 @@
21
21
  "url": "https://github.com/clicalmani/inertia-vite-plugin/issues"
22
22
  },
23
23
  "homepage": "https://github.com/clicalmani/inertia-vite-plugin#readme"
24
- }
24
+ }