Skip to content

Commit d59c219

Browse files
fix: fix build
1 parent 90369a4 commit d59c219

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

crates/config/src/rule/selector.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ fn try_parse_subclass_selector<'a, L: Language>(
180180
input: &mut Input<'a, L>,
181181
) -> Result<Option<Rule>, SelectorError> {
182182
if let Some(Token::ClassDot) = input.peek()? {
183-
todo!()
183+
return Err(SelectorError::Unsupported("class-selector"));
184184
} else if let Some(Token::PseudoColon) = input.peek()? {
185-
todo!()
185+
return Err(SelectorError::Unsupported("pseudo-class-selector"));
186186
}
187187
Ok(None)
188188
}
@@ -197,6 +197,8 @@ pub enum SelectorError {
197197
MissingSelector,
198198
#[error("Invalid Kind")]
199199
InvalidKind(#[from] KindMatcherError),
200+
#[error("{0} is not supported yet")]
201+
Unsupported(&'static str),
200202
}
201203

202204
struct Input<'a, L: Language> {
@@ -284,8 +286,6 @@ impl<'a, L: Language> Input<'a, L> {
284286

285287
#[cfg(test)]
286288
mod test {
287-
use std::num;
288-
289289
use super::*;
290290
use crate::test::TypeScript as TS;
291291
use ast_grep_core::tree_sitter::LanguageExt;

crates/napi/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"artifacts": "napi artifacts",
4545
"build": "napi build --no-const-enum --dts ignore.d.ts --platform --release",
4646
"build:debug": "napi build --no-const-enum --dts ignore.d.ts --platform",
47-
"prepublishOnly": "napi prepublish -t npm --skip-gh-release",
47+
"prepublishOnly": "napi prepublish -t npm --gh-release false",
4848
"pretest": "ts-node scripts/generateTypes.ts --test-only",
4949
"test": "tsc --noEmit && ava",
5050
"version": "napi version",

0 commit comments

Comments
 (0)