build
This commit is contained in:
parent
99a04ff45d
commit
925eae3a79
6 changed files with 10 additions and 23 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "p-drives",
|
||||
"version": "0.197.0",
|
||||
"version": "0.200.0",
|
||||
"description": "",
|
||||
"main": "src/index.ts",
|
||||
"exports": {
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
"clean": "rm -rf dist-require dist-import",
|
||||
"build-back": "tsup src/index.ts --dts --format cjs --out-dir dist-require --minify",
|
||||
"build-front": "tsup src/index.ts --dts --format esm --out-dir dist-import --minify",
|
||||
"build": "pnpm run biome && npm --no-git-tag-version version minor && pnpm run clean && pnpm run build-back && pnpm run build-front",
|
||||
"build": "pnpm run biome && npm --no-git-tag-version version minor && pnpm run clean && (pnpm run build-back & pnpm run build-front) && echo Fim",
|
||||
"biome": "npx @biomejs/biome check --write ./src",
|
||||
"nodev": "check-node-version --node '>= 20'"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -227,7 +227,12 @@ class ClassPilao {
|
|||
parametros_: z.infer<(typeof visoes_pilao)[T]> & z.infer<typeof z_padroes>,
|
||||
padroes?: Pick<z.infer<typeof z_padroes>, "descricao_pelo_usuario">,
|
||||
) {
|
||||
const parametros = { ...parametros_, ...(padroes || {}) }
|
||||
const parametros = {
|
||||
...parametros_,
|
||||
...Object.fromEntries(
|
||||
Object.entries(padroes || {}).filter(([_, v]) => v !== undefined),
|
||||
),
|
||||
}
|
||||
|
||||
const dados = async (): Promise<
|
||||
tipoResposta<tipoRetornoSerieconsulta<T>>
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "./dist-import",
|
||||
"target": "ES2020",
|
||||
"module": "ES2015",
|
||||
"declaration": true,
|
||||
}
|
||||
}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "ES2020",
|
||||
"outDir": "./dist-require",
|
||||
"declaration": true,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue