Skip to content

Commit

Permalink
potato
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisermann committed Dec 17, 2023
1 parent 95a4150 commit d496f42
Show file tree
Hide file tree
Showing 17 changed files with 3,290 additions and 19 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/ci.yml
Expand Up @@ -3,24 +3,12 @@ name: CI
on: [push, pull_request]

jobs:
Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v4
with:
node-version: 16
cache: 'pnpm'
- run: pnpm install
- run: pnpm lint

Tests:
Repro:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [16, 18, 20]
os: [ubuntu-latest, windows-latest, macOS-latest]
node-version: [18]
os: [windows-latest]

steps:
- run: git config --global core.autocrlf false
Expand All @@ -31,6 +19,5 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm install
- run: pnpm test
env:
CI: true
- run: pnpm run build
- run: cd potato; pnpm install; pnpm run build;
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -23,7 +23,7 @@
},
"packageManager": "pnpm@8.12.1",
"volta": {
"node": "14.19.2"
"node": "20.10.0"
},
"files": [
"dist/"
Expand Down
10 changes: 10 additions & 0 deletions potato/.gitignore
@@ -0,0 +1,10 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
1 change: 1 addition & 0 deletions potato/.npmrc
@@ -0,0 +1 @@
engine-strict=true
18 changes: 18 additions & 0 deletions potato/README.md
@@ -0,0 +1,18 @@
# About

This repo contains a minimal reproduction of SvelteKit v2's SCSS preprocess dependency issue.

## How to reporduce

```bash
# install all dependencies
npm i

# run local dev server
npm run dev
```

The following message should show up in your terminal:
```bash
[vite-plugin-svelte] root_directory/src/routes/+page.svelte svelte.preprocess returned this file as a dependency of itself. This can be caused by an invalid configuration or importing generated code that depends on .svelte files (eg. tailwind base css)
```

0 comments on commit d496f42

Please sign in to comment.