Skip to content

Commit

Permalink
chore: change to ECMAScript modules (#11)
Browse files Browse the repository at this point in the history
* chore: change to ECMAScript modules

BREAKING CHANGE: The package won't support CJS anymore.
  • Loading branch information
jwasiak authored Apr 18, 2023
1 parent 2c51a6b commit 7dd6143
Show file tree
Hide file tree
Showing 22 changed files with 4,244 additions and 7,822 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
'plugin:react/recommended',
],
parserOptions: {
ecmaVersion: 2018,
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
Expand Down
34 changes: 4 additions & 30 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

jobs:
test:
name: test
testAndPublish:
name: Test and Publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup
uses: actions/setup-node@v2
with:
node-version: '16.x'
- uses: actions/cache@v1
node-version: '18.x'
- uses: actions/cache@v2
id: yarn-cache
with:
path: node_modules
Expand All @@ -31,32 +31,6 @@ jobs:
run: yarn lint
- name: Build
run: yarn build
- name: Test
run: yarn test

publish:
name: Publish
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup
uses: actions/setup-node@v2
with:
node-version: '16.x'
- uses: actions/cache@v1
id: yarn-cache
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node_modules-
- name: Install
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install
- name: Build
run: yarn build
- name: Release
env:
SLACK_WEBHOOK: ${{ secrets.ADMIN_SLACK_WEBHOOK }}
Expand Down
10 changes: 0 additions & 10 deletions docker-compose.yaml

This file was deleted.

156 changes: 0 additions & 156 deletions example/.gitignore

This file was deleted.

10 changes: 0 additions & 10 deletions example/nodemon.json

This file was deleted.

24 changes: 0 additions & 24 deletions example/package.json

This file was deleted.

32 changes: 0 additions & 32 deletions example/src/admin/admin.ts

This file was deleted.

8 changes: 0 additions & 8 deletions example/src/admin/resources/user/user.entity.ts

This file was deleted.

12 changes: 0 additions & 12 deletions example/src/admin/resources/user/user.resource.ts

This file was deleted.

35 changes: 0 additions & 35 deletions example/src/server.ts

This file was deleted.

17 changes: 0 additions & 17 deletions example/tsconfig.json

This file was deleted.

Loading

0 comments on commit 7dd6143

Please sign in to comment.