Skip to content

Commit

Permalink
Fix manifest keyword, parser release & small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kaleidawave committed Mar 20, 2023
1 parent 5316c91 commit 1a89c1f
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
@@ -1,4 +1,4 @@
name: Crates and GitHub release
name: Crates, NPM & GitHub release

on:
workflow_dispatch:
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Expand Up @@ -11,7 +11,7 @@ license = "MIT"
homepage = "https://kaleidawave.github.io/posts/introducing-ezno/"
repository = "https://github.com/kaleidawave/ezno"
default-run = "ezno"
keywords = ["javascript", "typescript", "type checker"]
keywords = ["javascript", "typescript", "type-checker"]
categories = ["compilers"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand All @@ -27,7 +27,7 @@ name = "ezno"
path = "src/main.rs"

[dependencies]
parser = { path = "./parser", version = "0.0.2", package = "ezno-parser" }
parser = { path = "./parser", version = "0.0.3", package = "ezno-parser" }
checker = { path = "./checker", version = "0.0.1", package = "ezno-checker" }
# ezno-web-framework = { path = "./plugins/web" }

Expand Down
2 changes: 1 addition & 1 deletion parser/Cargo.toml
Expand Up @@ -2,7 +2,7 @@
name = "ezno-parser"
description = "Parser and AST definitions for Ezno"
authors = ["Ben <kaleidawave@gmail.com>"]
version = "0.0.2"
version = "0.0.3"
edition = "2021"
license = "MIT"
repository = "https://github.com/kaleidawave/ezno"
Expand Down
4 changes: 2 additions & 2 deletions parser/generator/Cargo.toml
Expand Up @@ -2,7 +2,7 @@
name = "ezno-ast-generator"
description = "Quasi-quoted constant compiled TS definitions for Ezno AST"
authors = ["Ben <kaleidawave@gmail.com>"]
version = "0.0.2"
version = "0.0.3"
edition = "2021"
license = "MIT"
repository = "https://github.com/kaleidawave/ezno"
Expand All @@ -17,4 +17,4 @@ proc-macro = true
quote = "1.0"
proc-macro2 = "1.0"
self-rust-tokenize = "0.3.3"
parser = { path = "..", package = "ezno-parser", version = "0.0.2", features = ["self-rust-tokenize"]}
parser = { path = "..", package = "ezno-parser", version = "0.0.3", features = ["self-rust-tokenize"]}
6 changes: 2 additions & 4 deletions src/ast_explorer.rs
Expand Up @@ -25,9 +25,7 @@ impl ExplorerArguments {
pub(crate) fn run(&mut self) {
if let Some(ref file) = self.file {
let file = fs::read_to_string(file).unwrap();
match self.nested.run(file) {
_ => {}
}
self.nested.run(file);
} else {
println!("ezno ast-explorer\nUse #exit to leave. Also #switch-mode *mode name* and #load-file *path*");
loop {
Expand Down Expand Up @@ -112,7 +110,7 @@ impl ExplorerSubCommand {
println!("{:#?}", res);
}
}
Err(err) => emit_parser_error(input.clone(), err).unwrap(),
Err(err) => emit_parser_error(input, err).unwrap(),
}
}
ExplorerSubCommand::FullAST(_) => {
Expand Down
2 changes: 1 addition & 1 deletion src/cli.rs
Expand Up @@ -132,7 +132,7 @@ pub fn run_cli() {
return;
}

let command = match FromArgs::from_args(&["ezno-cli"], &arguments.as_slice()) {
let command = match FromArgs::from_args(&["ezno-cli"], arguments.as_slice()) {
Ok(TopLevel { nested }) => nested,
Err(err) => {
print_to_cli(format_args!("{}", err.output));
Expand Down
6 changes: 3 additions & 3 deletions src/temp.rs
Expand Up @@ -8,20 +8,20 @@ use parser::{
use crate::error_handling::{self, TempDiagnostic};

#[cfg_attr(target_family = "wasm", derive(serde::Serialize))]
pub(crate) struct Output {
pub struct Output {
pub output_path: String,
pub content: String,
pub mappings: String,
}

#[cfg_attr(target_family = "wasm", derive(serde::Serialize))]
pub(crate) struct BuildOutput {
pub struct BuildOutput {
pub outputs: Vec<Output>,
pub temp_warnings_and_infos: Vec<TempDiagnostic>,
}

// Just builds one file temporarily
pub(crate) fn build(
pub fn build(
content: String,
input_path: String,
output_path: String,
Expand Down
2 changes: 1 addition & 1 deletion src/utilities.rs
Expand Up @@ -57,5 +57,5 @@ pub(crate) fn get_cli_args() -> Vec<String> {

#[cfg(not(target_family = "wasm"))]
pub(crate) fn get_cli_args() -> Vec<String> {
std::env::args().into_iter().skip(1).collect()
std::env::args().skip(1).collect()
}

0 comments on commit 1a89c1f

Please sign in to comment.