From 9c08bd4ad9c07d5a744613d0fbb02a3127533c5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Victor=20Glind=C3=A5s?= Date: Tue, 25 Jun 2024 23:38:37 +0200 Subject: [PATCH] chore: update actions --- .github/workflows/deploy-docs.yml | 2 +- .github/workflows/validate.yml | 6 +++--- .travis.yml | 18 +++++++++--------- package.json | 13 ++++++++----- tsconfig.json | 4 ++-- 5 files changed, 23 insertions(+), 20 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index d8e8b98..774cf2b 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -36,7 +36,7 @@ jobs: - uses: actions/upload-pages-artifact@v3 with: # Upload entire repository - path: './docs' + path: "./docs" - name: Deploy to GitHub Pages id: deployment diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 28f2573..585774e 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -20,6 +20,6 @@ jobs: - uses: actions/checkout@v4 - run: bun install - - run: bun run prettier --check . - - run: bun tsc - - run: bun test + - run: bun run lint + - run: bun run tsc + - run: bun run test diff --git a/.travis.yml b/.travis.yml index 762fe85..81a4d17 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,13 +6,13 @@ notifications: email: false node_js: - node -before_install: - - export CHROME_BIN=/usr/bin/google-chrome - - export DISPLAY=:99.0 - - sh -e /etc/init.d/xvfb start - - sudo apt-get update - - sudo apt-get install -y libappindicator1 fonts-liberation - - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb - - sudo dpkg -i google-chrome*.deb +before_install: + - export CHROME_BIN=/usr/bin/google-chrome + - export DISPLAY=:99.0 + - sh -e /etc/init.d/xvfb start + - sudo apt-get update + - sudo apt-get install -y libappindicator1 fonts-liberation + - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb + - sudo dpkg -i google-chrome*.deb script: - - npm run test && npm run build \ No newline at end of file + - npm run test && npm run build diff --git a/package.json b/package.json index 13f5836..cc6e711 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "main": "dist/index.js", "module": "dist/index.mjs", "typings": "dist/index.d.ts", - "exports":{ + "exports": { ".": { "import": { "types": "./dist/index.d.mts", @@ -19,7 +19,7 @@ } }, "./*": { - "import":{ + "import": { "types": "./dist/*/index.d.mts", "default": "./dist/*/index.mjs" }, @@ -29,16 +29,19 @@ } } }, - "files": ["dist"], + "files": [ + "dist" + ], "scripts": { "docs": "typedoc --out docs src", "build": "tsup", + "lint": "prettier --check \"./*.ts\" \"src/**/*.ts\" \"test/**/*.ts\"", "prettier": "prettier --write \"./*.ts\" \"src/**/*.ts\" \"test/**/*.ts\"", "tsc": "tsc", "test": "bun test", "test:watch": "bun test --watch" }, - "pre-commit": "prettier, test", + "pre-commit": "lint, test", "devDependencies": { "@happy-dom/global-registrator": "^14.12.3", "@types/bun": "^1.1.5", @@ -75,4 +78,4 @@ "modular", "utilities" ] -} \ No newline at end of file +} diff --git a/tsconfig.json b/tsconfig.json index 83c3e5b..1cb4c4f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,10 +2,10 @@ "compilerOptions": { "target": "ES2015", "module": "Preserve", - "lib": ["es2015", "es2016", "es2017", "dom",], + "lib": ["es2015", "es2016", "es2017", "dom"], "strict": true, "skipLibCheck": true, - "noEmit": true, + "noEmit": true }, "include": ["src", "rollup.config.ts"], "exclude": ["node_modules"]