feat: import fresh from fresh (#2479)

Instead of importing as `@fresh/core`.
This commit is contained in:
Luca Casonato
2024-06-05 14:51:35 +02:00
committed by GitHub
parent 19d3e452ac
commit c3ec742a65
39 changed files with 89 additions and 89 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ A Tailwind CSS plugin to use in Fresh.
// dev.ts
import { tailwind } from "@fresh/plugin-tailwind";
import { FreshDevApp } from "@fresh/core/dev";
import { FreshDevApp } from "fresh/dev";
import { app } from "./main.ts";
const devApp = new FreshDevApp();
+1 -1
View File
@@ -5,7 +5,7 @@
".": "./src/mod.ts"
},
"imports": {
"@fresh/core": "jsr:@fresh/core@^2.0.0-alpha.1",
"fresh": "jsr:@fresh/core@^2.0.0-alpha.1",
"@std/path": "jsr:@std/path@^0.221.0",
"autoprefixer": "npm:autoprefixer@10.4.17",
"cssnano": "npm:cssnano@6.0.3",
+1 -1
View File
@@ -4,7 +4,7 @@ import cssnano from "cssnano";
import autoprefixer from "autoprefixer";
import * as path from "@std/path";
import type { TailwindPluginOptions } from "./types.ts";
import type { ResolvedFreshConfig } from "@fresh/core";
import type { ResolvedFreshConfig } from "fresh";
const CONFIG_EXTENSIONS = ["ts", "js", "mjs"];
+2 -2
View File
@@ -1,7 +1,7 @@
import type { TailwindPluginOptions } from "./types.ts";
import { initTailwind } from "./compiler.ts";
import type { Builder } from "@fresh/core/dev";
import type { App } from "@fresh/core";
import type { Builder } from "fresh/dev";
import type { App } from "fresh";
export function tailwind<T>(
builder: Builder,