feat: type module by default
This commit is contained in:
1 parent
120f702862
commit
d414465d2e
4 files changed
+164
-740
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
# [name]
|
# pkg-name
|
||||||
|
|
||||||
[](https://www.npmjs.com/package/[name])
|
[](https://www.npmjs.com/package/pkg-name)
|
||||||
|
|
||||||
## Sponsors
|
## Sponsors
|
||||||
|
|
||||||
|
|||||||
+18
-18
@@ -1,21 +1,22 @@
|
|||||||
{
|
{
|
||||||
"name": "name",
|
"name": "pkg-name",
|
||||||
|
"type": "module",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"packageManager": "pnpm@6.32.3",
|
"packageManager": "pnpm@7.0.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"homepage": "https://github.com/antfu/[name]#readme",
|
"homepage": "https://github.com/antfu/pkg-name#readme",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/antfu/[name]/issues"
|
"url": "https://github.com/antfu/pkg-name/issues"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/antfu/[name].git"
|
"url": "git+https://github.com/antfu/pkg-name.git"
|
||||||
},
|
},
|
||||||
"funding": "https://github.com/sponsors/antfu",
|
"funding": "https://github.com/sponsors/antfu",
|
||||||
"main": "./dist/index.cjs",
|
"main": "./dist/index.mjs",
|
||||||
"module": "./dist/index.mjs",
|
"module": "./dist/index.mjs",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
@@ -38,28 +39,27 @@
|
|||||||
],
|
],
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "rimraf dist && unbuild",
|
"build": "unbuild",
|
||||||
"dev": "unbuild --stub",
|
"dev": "unbuild --stub",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"prepublishOnly": "nr build",
|
"prepublishOnly": "nr build",
|
||||||
"release": "bumpp --commit --push --tag && pnpm publish",
|
"release": "bumpp --commit --push --tag && npm publish",
|
||||||
"start": "esno src/index.ts",
|
"start": "esmo src/index.ts",
|
||||||
"test": "vitest",
|
"test": "vitest",
|
||||||
"typecheck": "tsc --noEmit"
|
"typecheck": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@antfu/eslint-config": "^0.21.1",
|
"@antfu/eslint-config": "^0.23.0",
|
||||||
"@antfu/ni": "^0.14.0",
|
"@antfu/ni": "^0.16.2",
|
||||||
"@babel/types": "^7.17.0",
|
"@types/node": "^17.0.31",
|
||||||
"@types/node": "^17.0.29",
|
|
||||||
"bumpp": "^7.1.1",
|
"bumpp": "^7.1.1",
|
||||||
"eslint": "^8.14.0",
|
"eslint": "^8.14.0",
|
||||||
"esno": "^0.14.1",
|
"esmo": "^0.14.1",
|
||||||
"pnpm": "^6.32.11",
|
"pnpm": "^7.0.0",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "^4.6.3",
|
"typescript": "^4.6.4",
|
||||||
"unbuild": "^0.7.4",
|
"unbuild": "^0.7.4",
|
||||||
"vite": "^2.9.6",
|
"vite": "^2.9.7",
|
||||||
"vitest": "^0.10.0"
|
"vitest": "^0.10.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Generated
+143
-719
File diff suppressed because it is too large.
Load diff
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "es2017",
|
"target": "es2018",
|
||||||
"module": "esnext",
|
"module": "esnext",
|
||||||
"lib": ["esnext"],
|
"lib": ["esnext"],
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
|
|||||||
Reference in new issue
Block a user