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