Skip to content

Commit

Permalink
chore: upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWitchBella committed Sep 9, 2021
1 parent 2771a76 commit a9c81c1
Show file tree
Hide file tree
Showing 3 changed files with 222 additions and 192 deletions.
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@
"test": "echo $HOME"
},
"devDependencies": {
"@types/node": "^14.14.32",
"@types/node-fetch": "^2.5.8",
"@typescript-eslint/parser": "^4.16.1",
"eslint": "^7.21.0",
"eslint-config-prettier": "^8.1.0",
"prettier": "^2.2.1",
"typescript": "^4.2.3",
"vite": "^2.0.5"
"@types/node": "^16.9.0",
"@types/node-fetch": "^3.0.3",
"@typescript-eslint/parser": "^4.31.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"prettier": "^2.4.0",
"typescript": "^4.4.2",
"vite": "^2.5.6"
},
"dependencies": {
"node-fetch": "^2.6.1",
"node-fetch": "^3.0.0",
"open": "^8.2.1"
},
"engines": {
Expand Down
9 changes: 5 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
import { defineConfig } from 'vite'
import path from 'path'
import fs from 'fs'
import { fileURLToPath } from 'url'

const __dirname = path.dirname(import.meta.url.replace('file://', ''))
const dirname = path.dirname(fileURLToPath(import.meta.url))

const pkg: typeof import('./package.json') = JSON.parse(
fs.readFileSync(path.join(__dirname, 'package.json'), 'utf-8'),
const pkg = JSON.parse(
fs.readFileSync(path.join(dirname, 'package.json'), 'utf-8'),
)

// https://vitejs.dev/config/
export default defineConfig({
build: {
outDir: 'dist',
lib: {
entry: path.resolve(__dirname, 'src/publisher.ts'),
entry: path.resolve(dirname, 'src/publisher.ts'),
formats: ['es'],
},
rollupOptions: {
Expand Down

0 comments on commit a9c81c1

Please sign in to comment.