manual lockfile update (#3751)
* lockfile update * update lockfile gen script * Update index.ts
This commit is contained in:
parent
dd176ca58d
commit
4bc6c7ceaa
3 changed files with 2935 additions and 2723 deletions
7
.github/workflows/nightly.yml
vendored
7
.github/workflows/nightly.yml
vendored
|
@ -57,8 +57,11 @@ jobs:
|
|||
node-version: 16
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Upgrade recursive
|
||||
run: pnpm upgrade --recursive
|
||||
- name: Delete the existing pnpm-lock.yaml file
|
||||
run: rm pnpm-lock.yaml
|
||||
|
||||
- name: Create a fresh pnpm lockfile (no install)
|
||||
run: pnpm install --lockfile-only
|
||||
|
||||
- name: Create Pull Request
|
||||
id: createpr
|
||||
|
|
|
@ -2,9 +2,8 @@ import load from '@proload/core';
|
|||
import type { AstroIntegration } from 'astro';
|
||||
import autoprefixerPlugin from 'autoprefixer';
|
||||
import path from 'path';
|
||||
import tailwindPlugin from 'tailwindcss';
|
||||
import tailwindPlugin, { Config as TailwindConfig } from 'tailwindcss';
|
||||
import resolveConfig from 'tailwindcss/resolveConfig.js';
|
||||
import type { TailwindConfig } from 'tailwindcss/tailwind-config';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
function getDefaultTailwindConfig(srcUrl: URL): TailwindConfig {
|
||||
|
@ -15,7 +14,7 @@ function getDefaultTailwindConfig(srcUrl: URL): TailwindConfig {
|
|||
plugins: [],
|
||||
content: [path.join(fileURLToPath(srcUrl), `**`, `*.{astro,html,js,jsx,svelte,ts,tsx,vue}`)],
|
||||
presets: undefined, // enable Tailwind's default preset
|
||||
});
|
||||
}) as TailwindConfig;
|
||||
}
|
||||
|
||||
async function getUserConfig(root: URL, configPath?: string) {
|
||||
|
@ -70,7 +69,6 @@ export default function tailwindIntegration(options?: TailwindOptions): AstroInt
|
|||
|
||||
const tailwindConfig: TailwindConfig =
|
||||
(userConfig?.value as TailwindConfig) ?? getDefaultTailwindConfig(config.srcDir);
|
||||
|
||||
config.style.postcss.plugins.push(tailwindPlugin(tailwindConfig));
|
||||
config.style.postcss.plugins.push(autoprefixerPlugin);
|
||||
|
||||
|
|
5645
pnpm-lock.yaml
5645
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue