Skip to content

Commit

Permalink
chore: Use src folder instead of lib for player
Browse files Browse the repository at this point in the history
  • Loading branch information
matvp91 committed Oct 8, 2024
1 parent 313d4a1 commit 720ef27
Show file tree
Hide file tree
Showing 49 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
with:
fetch-depth: 0
- uses: pnpm/action-setup@v3
- name: Setup Node
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,22 @@ on:
pull_request:

jobs:
all:
lint:
runs-on: ubuntu-latest
name: All
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v3
- name: Setup Node
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Run unit tests
run: pnpm lint
- name: Run api
run: pnpm lint api
- name: Run artisan
run: pnpm lint artisan
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
fetch-depth: 0
- uses: pnpm/action-setup@v3
- name: Setup Node
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/player/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
"noFallthroughCasesInSwitch": true,
"baseUrl": "."
},
"include": ["example", "lib"]
"include": ["src"]
}
2 changes: 1 addition & 1 deletion packages/player/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default defineConfig({
build: {
emptyOutDir: false,
lib: {
entry: resolve(__dirname, "lib/index.ts"),
entry: resolve(__dirname, "src/index.ts"),
fileName: "index",
formats: ["es"],
},
Expand Down
12 changes: 6 additions & 6 deletions scripts/lint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# api
eslint "packages/api/src/**/*.ts"
prettier --check "packages/api/src/**/*.ts"
echo "🎯 Running lint for packages/$1"

# artisan
eslint "packages/artisan/src/**/*.ts"
prettier --check "packages/artisan/src/**/*.ts"
eslint "packages/$1/src/**/*.ts"
echo "✅ eslint"

prettier --check "packages/$1/src/**/*.ts"
echo "✅ prettier"

0 comments on commit 720ef27

Please sign in to comment.