mirror of
https://github.com/cupcakearmy/canihazusername.git
synced 2025-02-23 07:39:22 +00:00
include esm build
This commit is contained in:
parent
c48bf92f9c
commit
b1ec1ec3ce
@ -1,9 +1,10 @@
|
||||

|
||||
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
Username generator. Fully typed, simple and customizable. **0 Dependencies**
|
||||
|
||||
|
33
package.json
33
package.json
@ -1,9 +1,22 @@
|
||||
{
|
||||
"name": "canihazusername",
|
||||
"version": "2.2.3",
|
||||
"version": "2.3.0",
|
||||
"description": "username generator. typed, simple and customizable",
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"type": "module",
|
||||
"main": "./dist/cjs/index.js",
|
||||
"types": "./dist/cjs/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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
@ -16,10 +29,12 @@
|
||||
"scripts": {
|
||||
"generate": "git submodule update && node ./generate/wordlist.js",
|
||||
"dev": "tsc -w",
|
||||
"build": "tsc",
|
||||
"docs": "tsc && parcel build --target docs demo/index.html ",
|
||||
"build:esm": "tsc -p ./tsconfig.esm.json",
|
||||
"build:cjs": "tsc -p ./tsconfig.cjs.json",
|
||||
"build": "pnpm run build:esm && pnpm run build:cjs",
|
||||
"docs": "pnpm run build && parcel build --target docs demo/index.html",
|
||||
"docs:dev": "parcel --target docs demo/index.html",
|
||||
"prepublishOnly": "rm -rf ./dist && tsc"
|
||||
"prepublishOnly": "rm -rf ./dist && pnpm run build"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@ -38,8 +53,8 @@
|
||||
},
|
||||
"homepage": "https://github.com/CupCakeArmy/canihazusername#readme",
|
||||
"devDependencies": {
|
||||
"bulma": "^0.9.3",
|
||||
"parcel": "^2.3.2",
|
||||
"typescript": "^4.6.2"
|
||||
"bulma": "^0.9.4",
|
||||
"parcel": "^2.6.0",
|
||||
"typescript": "^4.7.2"
|
||||
}
|
||||
}
|
||||
|
1575
pnpm-lock.yaml
generated
1575
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
7
tsconfig.cjs.json
Normal file
7
tsconfig.cjs.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"outDir": "./dist/cjs/"
|
||||
}
|
||||
}
|
7
tsconfig.esm.json
Normal file
7
tsconfig.esm.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"module": "ES2020",
|
||||
"outDir": "./dist/esm/"
|
||||
}
|
||||
}
|
@ -26,7 +26,7 @@
|
||||
/* Modules */
|
||||
"module": "commonjs" /* Specify what module code is generated. */,
|
||||
"rootDir": "./src" /* Specify the root folder within your source files. */,
|
||||
// "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
|
||||
"moduleResolution": "node" /* Specify how TypeScript looks up a file from a given module specifier. */,
|
||||
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
||||
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
||||
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user