Skip to content

Commit

Permalink
refactor: update repo
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 15, 2022
1 parent 38adf20 commit 72e22f8
Show file tree
Hide file tree
Showing 68 changed files with 2,577 additions and 2,645 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
dist
runtime
/runtime
13 changes: 11 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{
"extends": [
"@nuxtjs/eslint-config-typescript"
]
"eslint-config-unjs"
],
"rules": {
"unicorn/no-null": 0,
"unicorn/prevent-abbreviations": 0,
"no-undef": 0,
"unicorn/text-encoding-identifier-case": 0,
"unicorn/filename-case": 0,
"unicorn/prefer-code-point": 0,
"unicorn/prefer-math-trunc": 0
}
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Unjs
Copyright (c) Pooya Parsa <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
10 changes: 5 additions & 5 deletions build.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { defineBuildConfig } from 'unbuild'
import { defineBuildConfig } from "unbuild";

export default defineBuildConfig({
declaration: true,
rollup: {
emitCJS: true
},
entries: [
'src/index',
{ input: 'src/runtime/', outDir: 'runtime', format: 'esm' },
{ input: 'src/runtime/', outDir: 'runtime', format: 'cjs', ext: 'cjs', declaration: false }
"src/index",
{ input: "src/runtime/", outDir: "runtime", format: "esm" },
{ input: "src/runtime/", outDir: "runtime", format: "cjs", ext: "cjs", declaration: false }
]
})
});
22 changes: 12 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
"exports": {
".": {
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
},
"./runtime/mock/proxy-cjs": "./runtime/mock/proxy.cjs",
"./runtime/mock/proxy-cjs/*": "./runtime/mock/proxy.cjs",
"./runtime/*": {
"require": "./runtime/*.cjs",
"types": "./runtime/*.d.ts",
"import": "./runtime/*.mjs"
}
},
Expand All @@ -24,24 +26,24 @@
],
"scripts": {
"build": "unbuild",
"lint": "eslint --ext ts .",
"lint": "eslint --ext .ts .",
"prepack": "unbuild",
"release": "standard-version && pnpm publish && git push --follow-tags"
},
"dependencies": {
"defu": "^6.1.1",
"mime": "^3.0.0",
"node-fetch-native": "^0.1.8",
"pathe": "^0.3.9"
"node-fetch-native": "^1.0.1",
"pathe": "^1.0.0"
},
"devDependencies": {
"@nuxtjs/eslint-config-typescript": "latest",
"@types/node": "^17.0.31",
"consola": "latest",
"eslint": "latest",
"standard-version": "latest",
"typescript": "latest",
"unbuild": "latest"
"@types/node": "^18.11.9",
"consola": "^2.15.3",
"eslint": "^8.27.0",
"eslint-config-unjs": "^0.0.2",
"standard-version": "^9.5.0",
"typescript": "^4.8.4",
"unbuild": "^0.9.4"
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit 72e22f8

Please sign in to comment.