manual lockfile update (#3751)

* lockfile update

* update lockfile gen script

* Update index.ts
This commit is contained in:
Fred K. Schott 2022-06-29 14:54:40 -07:00 committed by GitHub
parent dd176ca58d
commit 4bc6c7ceaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2935 additions and 2723 deletions

View file

@ -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

View file

@ -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);

File diff suppressed because it is too large Load diff