mirror of
https://github.com/cupcakearmy/canihazusername.git
synced 2024-11-16 10:00:56 +01:00
bundle with tsup
This commit is contained in:
parent
0061331ad5
commit
9a29dee68c
26
package.json
26
package.json
@ -1,20 +1,16 @@
|
||||
{
|
||||
"name": "canihazusername",
|
||||
"version": "2.3.2",
|
||||
"version": "2.3.3",
|
||||
"description": "username generator. typed, simple and customizable",
|
||||
"type": "module",
|
||||
"main": "./dist/cjs/index.js",
|
||||
"types": "./dist/cjs/index.d.ts",
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": {
|
||||
"default": "./dist/esm/index.js",
|
||||
"types": "./dist/esm/index.d.ts"
|
||||
},
|
||||
"require": {
|
||||
"default": "./dist/cjs/index.js",
|
||||
"types": "./dist/cjs/index.d.ts"
|
||||
}
|
||||
"require": "./dist/index.js",
|
||||
"import": "./dist/index.mjs",
|
||||
"types": "./dist/index.d.ts"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
@ -29,12 +25,11 @@
|
||||
"scripts": {
|
||||
"generate": "git submodule update && node ./generate/wordlist.js",
|
||||
"dev": "tsc -w",
|
||||
"build:esm": "tsc -p ./tsconfig.esm.json",
|
||||
"build:cjs": "tsc -p ./tsconfig.cjs.json",
|
||||
"build": "pnpm run build:esm && pnpm run build:cjs",
|
||||
"build": "tsup src/index.ts --format cjs,esm --dts --sourcemap",
|
||||
"docs": "pnpm run build && parcel build --target docs demo/index.html",
|
||||
"docs:dev": "parcel --target docs demo/index.html",
|
||||
"prepublishOnly": "rm -rf ./dist && pnpm run build"
|
||||
"prepublishOnly": "rm -rf ./dist && pnpm run build",
|
||||
"clean": "rm -rf ./dist ./build ./.parcel-cache"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@ -55,6 +50,7 @@
|
||||
"devDependencies": {
|
||||
"bulma": "^0.9.4",
|
||||
"parcel": "^2.6.0",
|
||||
"tsup": "^6.0.1",
|
||||
"typescript": "^4.7.2"
|
||||
}
|
||||
}
|
||||
|
784
pnpm-lock.yaml
784
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
@ -1,7 +0,0 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"outDir": "./dist/cjs/"
|
||||
}
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"module": "ES2020",
|
||||
"outDir": "./dist/esm/"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user