Skip to content

Commit

Permalink
fix(shared): get rid of <reference types="node" />
Browse files Browse the repository at this point in the history
  • Loading branch information
Anber committed Feb 8, 2024
1 parent 8eca477 commit e367ee6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
7 changes: 7 additions & 0 deletions .changeset/spicy-lobsters-rest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@wyw-in-js/template-tag-syntax': patch
'@wyw-in-js/shared': patch
'wyw-in-js': patch
---

Removed `<reference types="node" />` from `@wyw-in-js/shared`. Fixes #33.
1 change: 0 additions & 1 deletion examples/template-tag-syntax/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"@wyw-in-js/babel-config": "workspace:*",
"@wyw-in-js/eslint-config": "workspace:*",
"@wyw-in-js/jest-preset": "workspace:*",
"@wyw-in-js/shared": "workspace:*",
"@wyw-in-js/transform": "workspace:*",
"@wyw-in-js/ts-config": "workspace:*",
"dedent": "^1.5.1"
Expand Down
4 changes: 2 additions & 2 deletions examples/template-tag-syntax/src/css.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { WYWEvalMeta } from '@wyw-in-js/shared';

import type { CSSProperties } from './CSSProperties';

type WYWEvalMeta = { __wyw_meta: unknown }; // simplified version of WYWEvalMeta from @wyw-in-js/shared

type CSS = (
strings: TemplateStringsArray,
...exprs: Array<string | number | CSSProperties | WYWEvalMeta>
Expand Down
5 changes: 3 additions & 2 deletions packages/shared/src/options/types.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import type { Context as VmContext } from 'vm';

import type { TransformOptions } from '@babel/core';
import type { File } from '@babel/types';

import type { IVariableContext } from '../IVariableContext';
import type { Core } from '../babel';

// eslint-disable-next-line @typescript-eslint/no-explicit-any
type VmContext = Record<string, any>; // It's Context from `vm`

export type ClassNameSlugVars = {
dir: string;
ext: string;
Expand Down
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

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

0 comments on commit e367ee6

Please sign in to comment.