mirror of
https://codeberg.org/insects/cargo-spiel
synced 2025-05-23 02:33:41 +00:00
fix: properly include public/
in published crate
This commit is contained in:
parent
dc85a393cf
commit
a7907c8a37
4 changed files with 6 additions and 4 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -156,7 +156,7 @@ checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a"
|
|||
|
||||
[[package]]
|
||||
name = "cargo-spiel"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
dependencies = [
|
||||
"axum",
|
||||
"clap",
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
[package]
|
||||
name = "cargo-spiel"
|
||||
description = "Run a playground connected to a Cargo project locally"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
license = "MIT"
|
||||
edition = "2024"
|
||||
exclude = ["/frontend"]
|
||||
include = ["/public", "/src"]
|
||||
|
||||
[dependencies]
|
||||
axum = { version = "0.8.4", features = ["macros"] }
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"type": "module",
|
||||
"scripts": {
|
||||
"watch": "vite build --watch",
|
||||
"build": "vite build",
|
||||
"build": "vite build --emptyOutDir",
|
||||
"check": "svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -17,7 +17,7 @@ use axum::{
|
|||
use include_dir::{Dir, include_dir};
|
||||
use serde::Serialize;
|
||||
|
||||
static PUBLIC_DIR: Dir<'_> = include_dir!("$PWD/public");
|
||||
static PUBLIC_DIR: Dir<'_> = include_dir!("$CARGO_MANIFEST_DIR/public");
|
||||
|
||||
#[derive(Serialize)]
|
||||
struct OutputResponse {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue