This commit is contained in:
Luiz Silva 2024-05-07 10:17:51 -03:00
parent f30428ce4d
commit 1968877db8
63 changed files with 6 additions and 12 deletions

View file

@ -1,18 +1,12 @@
{ {
"name": "~comuns", "name": "~comuns",
"version": "0.11.0", "version": "0.13.0",
"description": "", "description": "",
"main": "src/index.ts", "main": "src/index.ts",
"exports": {
".": {
"require": "./dist-cjs/index.js",
"import": "./dist-esm/index.js"
}
},
"scripts": { "scripts": {
"build": "npm run biome && pnpm run build-cjs && pnpm run build-esm && npm --no-git-tag-version version minor", "build": "npm run biome && pnpm run build-require && pnpm run build-import && npm --no-git-tag-version version minor",
"build-cjs": "rm -rf ./dist-cjs && tsc -p ./tsconfig.cjs.json", "build-require": "rm -rf ./dist-require && tsc -p ./tsconfig.require.json",
"build-esm": "rm -rf ./dist-esm && tsc -p ./tsconfig.esm.json", "build-import": "rm -rf ./dist-import && tsc -p ./tsconfig.import.json",
"biome": "npx @biomejs/biome check --apply ./src && npx @biomejs/biome format --write ./src" "biome": "npx @biomejs/biome check --apply ./src && npx @biomejs/biome format --write ./src"
}, },
"author": "", "author": "",

View file

@ -1,7 +1,7 @@
{ {
"extends": "./tsconfig.json", "extends": "./tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./dist-esm", "outDir": "./dist-import",
"module": "esnext" "module": "esnext"
} }
} }

View file

@ -1,7 +1,7 @@
{ {
"extends": "./tsconfig.json", "extends": "./tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./dist-cjs", "outDir": "./dist-require",
"module": "commonjs" "module": "commonjs"
} }
} }