Commit e975b59
committed
Ensure that
According to vercel/ncc#829, `ncc` has some
magic that includes the resource in the bundled package if the path is
specified using `path.join(__dirname, ...)`.
However, we're already using ESModule, therefore we need to use the
`import.meta.url` syntax (`import.meta.dirname` unfortunately does not
seem to work in my hands).
Having said that, the promise was that `ncc` would include this asset in
the `dist/index.js` file, but no matter what I tried, I could not make
this work. For that reason, the `res/` folder will need to be copied
into `dist/` before publishing as a GitHub Action.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>res/WELCOME.md is found even after compiling with ncc
1 parent 5d7df21 commit e975b59
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
874 | 875 | | |
875 | 876 | | |
876 | 877 | | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
877 | 883 | | |
878 | 884 | | |
879 | 885 | | |
| |||
897 | 903 | | |
898 | 904 | | |
899 | 905 | | |
900 | | - | |
| 906 | + | |
901 | 907 | | |
902 | 908 | | |
903 | 909 | | |
| |||
0 commit comments