Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel3108 committed Feb 9, 2025
1 parent 197e350 commit 8a5f993
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/addons/sveltekit-adapter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ export default defineAddon({

if (kitConfig && kitConfig.value.type === 'ObjectExpression') {
const adapterProp = kitConfig.value.properties.find(
(p) =>
p.type === 'ObjectProperty' && p.key.type === 'Identifier' && p.key.name === 'adapter'
(p) => p.type === 'Property' && p.key.type === 'Identifier' && p.key.name === 'adapter'
);
if (adapterProp) {
// @ts-expect-error comment nodes unknown in estree
adapterProp.comments = [];
}

Expand Down
4 changes: 1 addition & 3 deletions packages/ast-tooling/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ import {
} from 'postcss';
import * as fleece from 'silver-fleece';
import * as Walker from 'zimmerframe';
// todo: why is this file only generated during `dev` startup, if it's prefixed with type?
// @ts-expect-error
import { TsEstree } from './ts-estree.ts';
import type { TsEstree } from './ts-estree.ts';
import { print as esrapPrint } from 'esrap';
import * as acorn from 'acorn';
import { tsPlugin } from 'acorn-typescript';
Expand Down

0 comments on commit 8a5f993

Please sign in to comment.