typst-preview: 0.10.8 -> 0.11.1
This commit is contained in:
parent
7927f0f89c
commit
bae081c666
4 changed files with 638 additions and 465 deletions
1068
pkgs/by-name/ty/typst-preview/Cargo.lock
generated
1068
pkgs/by-name/ty/typst-preview/Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -9,15 +9,16 @@
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"test": "vitest",
|
"test": "vitest",
|
||||||
"coverage": "vitest run --coverage",
|
"coverage": "vitest run --coverage",
|
||||||
"link:local": "yarn link @myriaddreamin/typst.ts @myriaddreamin/typst-ts-renderer"
|
"link:local": "yarn link @myriaddreamin/typst.ts @myriaddreamin/typst-ts-renderer",
|
||||||
|
"unlink:local": "yarn unlink @myriaddreamin/typst.ts @myriaddreamin/typst-ts-renderer"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@myriaddreamin/typst-ts-renderer": "0.4.2-rc6",
|
"@myriaddreamin/typst-ts-renderer": "0.4.2-rc9",
|
||||||
"@myriaddreamin/typst.ts": "0.4.2-rc6"
|
"@myriaddreamin/typst.ts": "0.4.2-rc9"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@myriaddreamin/typst-ts-renderer": "0.4.2-rc6",
|
"@myriaddreamin/typst-ts-renderer": "0.4.2-rc9",
|
||||||
"@myriaddreamin/typst.ts": "0.4.2-rc6",
|
"@myriaddreamin/typst.ts": "0.4.2-rc9",
|
||||||
"typescript": "^5.0.2",
|
"typescript": "^5.0.2",
|
||||||
"vite": "^4.3.9",
|
"vite": "^4.3.9",
|
||||||
"vite-plugin-singlefile": "^0.13.5",
|
"vite-plugin-singlefile": "^0.13.5",
|
||||||
|
|
|
@ -9,11 +9,12 @@
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"test": "vitest",
|
"test": "vitest",
|
||||||
"coverage": "vitest run --coverage",
|
"coverage": "vitest run --coverage",
|
||||||
"link:local": "yarn link @myriaddreamin/typst.ts @myriaddreamin/typst-ts-renderer"
|
"link:local": "yarn link @myriaddreamin/typst.ts @myriaddreamin/typst-ts-renderer",
|
||||||
|
"unlink:local": "yarn unlink @myriaddreamin/typst.ts @myriaddreamin/typst-ts-renderer"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@myriaddreamin/typst-ts-renderer": "0.4.2-rc6",
|
"@myriaddreamin/typst-ts-renderer": "0.4.2-rc9",
|
||||||
"@myriaddreamin/typst.ts": "0.4.2-rc6",
|
"@myriaddreamin/typst.ts": "0.4.2-rc9",
|
||||||
"typst-dom": "file:../typst-dom",
|
"typst-dom": "file:../typst-dom",
|
||||||
"rxjs": "^7.8.1"
|
"rxjs": "^7.8.1"
|
||||||
},
|
},
|
||||||
|
|
|
@ -14,13 +14,13 @@
|
||||||
let
|
let
|
||||||
# Keep the vscode "mgt19937.typst-preview" extension in sync when updating
|
# Keep the vscode "mgt19937.typst-preview" extension in sync when updating
|
||||||
# this package at pkgs/applications/editors/vscode/extensions/default.nix
|
# this package at pkgs/applications/editors/vscode/extensions/default.nix
|
||||||
version = "0.10.8";
|
version = "0.11.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Enter-tainer";
|
owner = "Enter-tainer";
|
||||||
repo = "typst-preview";
|
repo = "typst-preview";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-n3lrJpCe/+THYepiiWIlTEMSMZPX7Qiucbg1ouU1ZEs=";
|
hash = "sha256-zjdcCxLVehUUCfkg1AsK/JDqwQ4QQe053gXl8cbK5MQ=";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
|
|
||||||
postFetch = ''
|
postFetch = ''
|
||||||
|
@ -41,7 +41,7 @@ let
|
||||||
|
|
||||||
offlineCache = fetchYarnDeps {
|
offlineCache = fetchYarnDeps {
|
||||||
yarnLock = "${domSrc}/yarn.lock";
|
yarnLock = "${domSrc}/yarn.lock";
|
||||||
hash = "sha256-+xn2SmpYdAb1nZkTOURqR5teu3dx2AKaiGoa9AmPA7o=";
|
hash = "sha256-aDs+2n6sL4MTizRuYqkwfYrx/lK3ll9u4NoN0zPyWco=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
@ -67,7 +67,7 @@ let
|
||||||
|
|
||||||
offlineCache = fetchYarnDeps {
|
offlineCache = fetchYarnDeps {
|
||||||
yarnLock = "${frontendSrc}/yarn.lock";
|
yarnLock = "${frontendSrc}/yarn.lock";
|
||||||
hash = "sha256-o8zWMLt6WqYWhcC7rqSeue6TxN20lYIjGqMxLApy5l0=";
|
hash = "sha256-gkjtDi7ZR3aKn1ZRJEkFc3IdhbmF1GyYoGiIniOsPBo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
packageResolutions = { inherit typst-dom; };
|
packageResolutions = { inherit typst-dom; };
|
||||||
|
@ -92,13 +92,7 @@ rustPlatform.buildRustPackage {
|
||||||
pname = "typst-preview";
|
pname = "typst-preview";
|
||||||
inherit version src;
|
inherit version src;
|
||||||
|
|
||||||
cargoLock = {
|
cargoHash = "sha256-FGy/U8sOJ/zsP15Uu4bWePlr4Hw7lZVQA7F7+Y8WbiE=";
|
||||||
lockFile = ./Cargo.lock;
|
|
||||||
outputHashes = {
|
|
||||||
"typst-0.10.0" = "sha256-/Oy4KigXu1E/S9myd+eigqlNvk5x+Ld9gTL9dtpoyqk=";
|
|
||||||
"typst-ts-compiler-0.4.2-rc6" = "sha256-mDQDxqXp38+Omt7D7kO2cUAVzG+h3JOs4tBdrbHH/lA=";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkg-config
|
pkg-config
|
||||||
|
@ -118,6 +112,7 @@ rustPlatform.buildRustPackage {
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
mkdir -p addons/vscode/out/frontend
|
mkdir -p addons/vscode/out/frontend
|
||||||
cp -R ${frontend}/* addons/vscode/out/frontend/
|
cp -R ${frontend}/* addons/vscode/out/frontend/
|
||||||
|
cp -R ${frontend}/index.html ./src/index.html
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|
Loading…
Reference in a new issue