Skip to content
This repository was archived by the owner on May 5, 2024. It is now read-only.

Commit 53242da

Browse files
committed
🧹 chore: refactor __detect.js and __metadata.js into __info.js
1 parent 0d1ee0b commit 53242da

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed

__detect.js renamed to __info.js

+18
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
import { extension } from "../postcss/stuff.js";
22

3+
export const name = "Tailwind CSS";
4+
5+
/** @typedef {{ forms: boolean, typography: boolean }} Options */
6+
7+
/** @type {import("../..").AdderOptions<Options>} */
8+
export const options = {
9+
forms: {
10+
context: "https://github.com/tailwindlabs/tailwindcss-forms",
11+
default: false,
12+
question: "Do you want to use the Tailwind CSS Forms plugin?",
13+
},
14+
typography: {
15+
context: "https://github.com/tailwindlabs/tailwindcss-typography",
16+
default: false,
17+
question: "Do you want to use the Tailwind CSS Typography plugin?",
18+
},
19+
};
20+
321
/** @type {import("../..").Heuristic[]} */
422
export const heuristics = [
523
{

__metadata.js

-17
This file was deleted.

__run.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ const updateGlobalStylesheet = (postcss) => {
260260
return postcss;
261261
};
262262

263-
/** @type {import("../../index.js").AdderRun<import("./__metadata.js").Options>} */
263+
/** @type {import("../..").AdderRun<import("./__info.js").Options>} */
264264
export const run = async ({ install, options, updateCss, updateJavaScript }) => {
265265
await updateJavaScript({
266266
path: tailwindConfigCjsPath,

0 commit comments

Comments
 (0)