From e0eadeb1edc5f52d033d1151b369bccc6e954de5 Mon Sep 17 00:00:00 2001 From: jtuu Date: Thu, 2 Jul 2020 17:39:47 +0300 Subject: [PATCH] Fixed an optional module not really being optional (prs-rs). --- .gitignore | 3 ++- package.json | 4 +++- src/core/data_formats/compression/prs/pkg/package.json | 4 ++++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 src/core/data_formats/compression/prs/pkg/package.json diff --git a/.gitignore b/.gitignore index f222b0b5..87b58ca7 100644 --- a/.gitignore +++ b/.gitignore @@ -35,4 +35,5 @@ report.*.json # rust output target/ # wasm-pack output -pkg/ +pkg/* +!pkg/package.json diff --git a/package.json b/package.json index 3238b1e9..1085ec58 100644 --- a/package.json +++ b/package.json @@ -11,9 +11,11 @@ "lodash": "^4.17.15", "luxon": "^1.23.0", "monaco-editor": "^0.20.0", - "prs-rs": "file:src/core/data_formats/compression/prs/pkg", "three": "^0.115.0" }, + "optionalDependencies": { + "prs-rs": "file:src/core/data_formats/compression/prs/pkg" + }, "scripts": { "start": "webpack-dev-server --config webpack.dev.js", "build_prs_rs": "wasm-pack build src/core/data_formats/compression/prs", diff --git a/src/core/data_formats/compression/prs/pkg/package.json b/src/core/data_formats/compression/prs/pkg/package.json new file mode 100644 index 00000000..6487eb03 --- /dev/null +++ b/src/core/data_formats/compression/prs/pkg/package.json @@ -0,0 +1,4 @@ +{ + "name": "prs-rs", + "version": "0.1.0" +}