Skip to content

Commit

Permalink
chore: move typescript to dev deps (#10)
Browse files Browse the repository at this point in the history
* move typescript to dev deps

* patch version

* build: handle undefined dependencies

---------

Co-authored-by: wangyewei <[email protected]>
  • Loading branch information
nonamich and wangyewei authored Aug 30, 2024
1 parent 51b9ecd commit c2de637
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"prettier.singleQuote": true
"prettier.singleQuote": true,
"cSpell.words": ["bumpp", "esno", "nprogress", "onwarn", "Yewei"],
"[typescript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
}
}
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"packageManager": "[email protected]",
"name": "nprogress-esm",
"version": "0.2.5",
"version": "0.2.6",
"description": "ESM-friendly NProgress Rewrite With Typescript",
"homepage": "https://nprogress-esm.vercel.app",
"repository": {
Expand Down Expand Up @@ -65,9 +65,7 @@
"rollup": "^4.9.2",
"rollup-plugin-dts": "^6.1.0",
"rollup-plugin-esbuild": "^6.1.0",
"typescript": "^5.3.3",
"vitest": "^1.1.3"
},
"dependencies": {
"typescript": "^5.3.3"
}
}
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const pkg = _require('./package.json')

const ROOT = fileURLToPath(import.meta.url)
const r = (p: string) => resolve(ROOT, '..', p)
const external = [...Object.keys(pkg.dependencies)]
const external = [...Object.keys(pkg['dependencies'] || {})]
const plugins = [
alias({
entries: {
Expand Down

0 comments on commit c2de637

Please sign in to comment.