vector-im-hydrogen-web/scripts
Eric Eastwood 0e40258404
Fix SDK asset build failing on Windows (#859)
Fix:

```sh
$ yarn run vite build -c vite.sdk-assets-config.js
yarn run v1.22.18
$ C:\Users\MLM\Documents\GitHub\element\hydrogen-web\node_modules\.bin\vite build -c vite.sdk-assets-config.js
locally linked postcss
cleanUrl(id) C:/Users/MLM/Documents/GitHub/element/hydrogen-web/src/platform/web/ui/css/themes/element/theme.css C:/Users/MLM/Documents/GitHub/element/hydrogen-web/src/platform/web/ui/css/themes/element/theme.css?type=runtime
[build-themes] Could not load C:/Users/MLM/Documents/GitHub/element/hydrogen-web/src/platform/web/ui/css/themes/element/theme.css?variant=light: ENOENT: no such file or directory, open 'C:\Users\MLM\Documents\GitHub\element\C:\Users\MLM\Documents\GitHub\element\hydrogen-web\src\platform\web\ui\css\themes\element\theme.css'
error during build:
Error: Could not load C:/Users/MLM/Documents/GitHub/element/hydrogen-web/src/platform/web/ui/css/themes/element/theme.css?variant=light: ENOENT: no such file or directory, open 'C:\Users\MLM\Documents\GitHub\element\C:\Users\MLM\Documents\GitHub\element\hydrogen-web\src\platform\web\ui\css\themes\element\theme.css'
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
```

Regressed in:
https://github.com/vector-im/hydrogen-web/pull/769/files#diff-5432b565e86d2514c825ed9972c37ea19820bf12b5d8d3203fc9d4ea4654bd34L20 where the `const path = require('path');` was removed but we also started using `path` in more places which needed the same treatment.

When making the fix, we also have to make sure we don't also regress:
https://github.com/vector-im/hydrogen-web/pull/750
2022-09-19 12:20:50 -05:00
..
build-plugins Fix SDK asset build failing on Windows (#859) 2022-09-19 12:20:50 -05:00
logviewer show number of matches in logviewer and don't hide expanded sibling 2021-06-02 21:25:46 +02:00
package-overrides make ie11 compatible 2021-11-10 19:10:06 +01:00
postcss Produce .tmp directory within root 2022-07-29 23:11:17 +05:30
sdk sdk version 0.1.0 2022-08-01 14:32:26 +02:00
test-derived-theme move semi-automatic test for runtime themes into dedicated directory 2022-07-29 16:43:28 +02:00
.eslintrc.js Move plugin to /scripts and create eslintrc 2022-03-14 11:35:10 +05:30
cleanup.sh Use sh instead of bash 2022-05-10 14:12:36 +05:30
package.sh rename config file to config.sample.json when packaging 2022-05-18 20:52:18 +02:00
release.sh abort release script on error 2022-06-30 10:54:00 +02:00