@berachain/config 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }require('../../chunk-4VDLQK6F.cjs');var _tsup = require('tsup');function r(e,t){if(Array.isArray(e))return e.map(i=>r(i,t));let s=process.argv.includes("--prepublish"),
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }require('../../chunk-4VDLQK6F.cjs');var _child_process = require('child_process');var _tsup = require('tsup');function r(e,t){if(Array.isArray(e))return e.map(i=>r(i,t));let s=process.argv.includes("--prepublish"),n=process.argv.includes("--sourcemap"),a=s||process.argv.includes("--cjs"),p=s||!a||process.argv.includes("--esm"),o=[];p&&o.push("esm"),a&&o.push("cjs");let c=s||process.argv.includes("--minify"),u=typeof t.dts=="object"&&t.dts.only;return{...{format:o,clean:!t.watch&&!u,splitting:!0,outExtension({format:i}){return{js:i==="esm"?".mjs":".cjs"}},outDir:"dist",skipNodeModulesBundle:!0,noExternal:["@berachain/utils"],minify:c,sourcemap:process.env.UPLOAD_SOURCEMAPS==="true"||n,dts:process.env.VERCEL!=="1",async onSuccess(){_child_process.execSync.call(void 0, `find dist -name "*.cjs" -exec perl -pi -e 's/return await /return await /g' {} +`)},esbuildOptions:(i,m)=>{i.jsx="automatic",i.sourceRoot="",_optionalChain([e, 'access', _ => _.esbuildOptions, 'optionalCall', _2 => _2(i,m)])}},...e}}var j=e=>_tsup.defineConfig.call(void 0, async t=>{let s;return typeof e=="function"?s=await e(t):s=e,Array.isArray(s)?s.map(n=>r(n,t)):r(s,t)});exports.beraTsupConfig = j;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../chunk-JZXLCA2E.mjs";import{defineConfig as
|
|
1
|
+
import"../../chunk-JZXLCA2E.mjs";import{execSync as l}from"child_process";import{defineConfig as O}from"tsup";function r(e,t){if(Array.isArray(e))return e.map(i=>r(i,t));let s=process.argv.includes("--prepublish"),n=process.argv.includes("--sourcemap"),a=s||process.argv.includes("--cjs"),p=s||!a||process.argv.includes("--esm"),o=[];p&&o.push("esm"),a&&o.push("cjs");let c=s||process.argv.includes("--minify"),u=typeof t.dts=="object"&&t.dts.only;return{...{format:o,clean:!t.watch&&!u,splitting:!0,outExtension({format:i}){return{js:i==="esm"?".mjs":".cjs"}},outDir:"dist",skipNodeModulesBundle:!0,noExternal:["@berachain/utils"],minify:c,sourcemap:process.env.UPLOAD_SOURCEMAPS==="true"||n,dts:process.env.VERCEL!=="1",async onSuccess(){l(`find dist -name "*.cjs" -exec perl -pi -e 's/returnawait /return await /g' {} +`)},esbuildOptions:(i,m)=>{i.jsx="automatic",i.sourceRoot="",e.esbuildOptions?.(i,m)}},...e}}var j=e=>O(async t=>{let s;return typeof e=="function"?s=await e(t):s=e,Array.isArray(s)?s.map(n=>r(n,t)):r(s,t)});export{j as beraTsupConfig};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@berachain/config",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"json-schema-to-typescript": "15.0.4",
|
|
20
20
|
"tailwindcss": "3.4.17",
|
|
21
21
|
"tailwindcss-animate": "1.0.7",
|
|
22
|
-
"tsup": "8.
|
|
22
|
+
"tsup": "8.5.1",
|
|
23
23
|
"typescript": "5.5.4",
|
|
24
24
|
"vitest": "3.2.4"
|
|
25
25
|
},
|