Skip to content

Commit

Permalink
🚨 Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
siguici committed May 30, 2024
1 parent 6e3ef1a commit db95fca
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import {
type PropertyValue,
type RuleSet,
type UtilityList,
} from "./plugin";
} from "./plugin.ts";

Check failure on line 10 in src/colors.ts

View workflow job for this annotation

GitHub Actions / 👷 CI Node-20.12 on ubuntu-latest

An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled.
import {
append_style,
darken_class,
darken_utility,
stylize_utility,
} from "./utils";
} from "./utils.ts";

Check failure on line 16 in src/colors.ts

View workflow job for this annotation

GitHub Actions / 👷 CI Node-20.12 on ubuntu-latest

An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled.

export type ColorName = PropertyName;
export type ColorScheme = "dark" | "light";
Expand Down
7 changes: 7 additions & 0 deletions src/deno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"imports": {
"tailwindcss": "npm:[email protected]",
"tailwindcss/": "npm:/[email protected]/",
"tailwindcss/plugin": "npm:/[email protected]/plugin.js"
}
}
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import plugin from "tailwindcss/plugin";
import type { PluginAPI } from "tailwindcss/types/config";
import { Colors, type ColorsConfig, DEFAULT_COLORS } from "./colors";
import type { PluginWithOptions } from "./plugin";
import { Colors, type ColorsConfig, DEFAULT_COLORS } from "./colors.ts";

Check failure on line 3 in src/index.ts

View workflow job for this annotation

GitHub Actions / 👷 CI Node-20.12 on ubuntu-latest

An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled.
import type { PluginWithOptions } from "./plugin.ts";

export type RequiredPluginConfig = {
colors: boolean | ColorsConfig;
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
stylize_properties_callback,
stylize_property,
stylize_property_callback,
} from "./utils";
} from "./utils.ts";

Check failure on line 15 in src/plugin.ts

View workflow job for this annotation

GitHub Actions / 👷 CI Node-20.12 on ubuntu-latest

An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled.

export interface PluginContract<T> {
readonly api: PluginAPI;
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type {
StyleCallback,
StyleCallbacks,
UtilityList,
} from "./plugin";
} from "./plugin.ts";

export function darken(
darkMode: DarkMode,
Expand Down

0 comments on commit db95fca

Please sign in to comment.