switch to pnpm and add import aliasing

This commit is contained in:
mrjvs
2023-09-14 20:19:07 +02:00
parent 2583a5126f
commit bd45c86ef5
9 changed files with 4125 additions and 6652 deletions

View File

@@ -15,21 +15,23 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
cache: 'pnpm'
- name: Install npm packages
run: npm install
- name: Install packages
run: pnpm install --frozen-lockfile
- name: Prepare for linting
run: npm run prepare
run: pnpm prepare
- name: Run ESLint
run: npm run lint
run: pnpm lint
building:
name: Build project
@@ -38,15 +40,16 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
cache: 'pnpm'
- name: Install npm packages
run: npm install
- name: Install pnpm packages
run: pnpm install --frozen-lockfile
- name: Build Project
run: npm run build
run: pnpm build