zixulu 1.48.3 → 1.48.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const tailwindConfig = "import
|
|
1
|
+
export declare const tailwindConfig = "import { Config } from \"tailwindcss\"\nconst config: Config = {\n content: [\n \"./index.html\",\n \"./public/index.html\",\n \"./src/**/*.{js,ts,jsx,tsx}\",\n \"./app/**/*.{js,ts,jsx,tsx}\",\n \"./components/**/*.{js,ts,jsx,tsx}\",\n ],\n theme: {\n extend: {},\n },\n plugins: [],\n}\n\nexport default config\n";
|
|
2
2
|
/** 添加 tailwind.config.js 配置成功 */
|
|
3
3
|
export declare function addTailwindConfig(): Promise<void>;
|
|
@@ -35,7 +35,7 @@ __export(addTailwindConfig_exports, {
|
|
|
35
35
|
module.exports = __toCommonJS(addTailwindConfig_exports);
|
|
36
36
|
var import_consola = __toESM(require("consola"));
|
|
37
37
|
var import_promises = require("fs/promises");
|
|
38
|
-
var tailwindConfig = `import
|
|
38
|
+
var tailwindConfig = `import { Config } from "tailwindcss"
|
|
39
39
|
const config: Config = {
|
|
40
40
|
content: [
|
|
41
41
|
"./index.html",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/utils/addTailwindConfig.ts"],
|
|
4
|
-
"sourcesContent": ["import consola from \"consola\"\nimport { writeFile } from \"fs/promises\"\n\nexport const tailwindConfig = `import
|
|
4
|
+
"sourcesContent": ["import consola from \"consola\"\nimport { writeFile } from \"fs/promises\"\n\nexport const tailwindConfig = `import { Config } from \"tailwindcss\"\nconst config: Config = {\n content: [\n \"./index.html\",\n \"./public/index.html\",\n \"./src/**/*.{js,ts,jsx,tsx}\",\n \"./app/**/*.{js,ts,jsx,tsx}\",\n \"./components/**/*.{js,ts,jsx,tsx}\",\n ],\n theme: {\n extend: {},\n },\n plugins: [],\n}\n\nexport default config\n`\n/** 添加 tailwind.config.js 配置成功 */\nexport async function addTailwindConfig() {\n try {\n await writeFile(\"tailwind.config.ts\", tailwindConfig, \"utf-8\")\n consola.success(\"添加 tailwind.config.ts 配置成功\")\n } catch (error) {\n consola.fail(\"添加 tailwind.config.ts 配置失败\")\n }\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAoB;AACpB,sBAA0B;AAEnB,IAAM,iBAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAkB9B,eAAsB,oBAAoB;AACtC,MAAI;AACA,cAAM,2BAAU,sBAAsB,gBAAgB,OAAO;AAC7D,mBAAAA,QAAQ,QAAQ,4BAA4B;AAAA,EAChD,SAAS,OAAP;AACE,mBAAAA,QAAQ,KAAK,4BAA4B;AAAA,EAC7C;AACJ;",
|
|
6
6
|
"names": ["consola"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import consola from "consola"
|
|
2
2
|
import { writeFile } from "fs/promises"
|
|
3
3
|
|
|
4
|
-
export const tailwindConfig = `import
|
|
4
|
+
export const tailwindConfig = `import { Config } from "tailwindcss"
|
|
5
5
|
const config: Config = {
|
|
6
6
|
content: [
|
|
7
7
|
"./index.html",
|