@cubing/dev-config 0.3.4 → 0.3.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,2 +1,27 @@
1
- var t={format:"esm",target:"es2022",bundle:!0,splitting:!0,chunkNames:"chunks/[name]-[hash]",sourcemap:!0};function n(e){return{...t,minify:!e?.dev}}function s(){return{...n(),packages:"external"}}export{n as es2022App,s as es2022Lib};
1
+ // src/esbuild/es2022/index.ts
2
+ var common = {
3
+ format: "esm",
4
+ target: "es2022",
5
+ bundle: true,
6
+ splitting: true,
7
+ chunkNames: "chunks/[name]-[hash]",
8
+ sourcemap: true
9
+ };
10
+ function es2022App(options) {
11
+ return {
12
+ ...common,
13
+ minify: !options?.dev
14
+ };
15
+ }
16
+ function es2022Lib() {
17
+ return {
18
+ ...es2022App(),
19
+ minify: false,
20
+ packages: "external"
21
+ };
22
+ }
23
+ export {
24
+ es2022App,
25
+ es2022Lib
26
+ };
2
27
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/esbuild/es2022/index.ts"],
4
- "sourcesContent": ["import type { BuildOptions } from \"esbuild\";\n\nconst common = {\n format: \"esm\",\n target: \"es2022\",\n\n bundle: true,\n splitting: true,\n\n chunkNames: \"chunks/[name]-[hash]\",\n sourcemap: true,\n} as const satisfies BuildOptions;\n\nexport function es2022App(options?: { dev?: boolean }): BuildOptions {\n return {\n ...common,\n minify: !options?.dev,\n };\n}\n\nexport function es2022Lib(): BuildOptions {\n return {\n ...es2022App(),\n packages: \"external\",\n };\n}\n"],
5
- "mappings": "AAEA,IAAMA,EAAS,CACb,OAAQ,MACR,OAAQ,SAER,OAAQ,GACR,UAAW,GAEX,WAAY,uBACZ,UAAW,EACb,EAEO,SAASC,EAAUC,EAA2C,CACnE,MAAO,CACL,GAAGF,EACH,OAAQ,CAACE,GAAS,GACpB,CACF,CAEO,SAASC,GAA0B,CACxC,MAAO,CACL,GAAGF,EAAU,EACb,SAAU,UACZ,CACF",
6
- "names": ["common", "es2022App", "options", "es2022Lib"]
4
+ "sourcesContent": ["import type { BuildOptions } from \"esbuild\";\n\nconst common = {\n format: \"esm\",\n target: \"es2022\",\n\n bundle: true,\n splitting: true,\n\n chunkNames: \"chunks/[name]-[hash]\",\n sourcemap: true,\n} as const satisfies BuildOptions;\n\nexport function es2022App(options?: { dev?: boolean }): BuildOptions {\n return {\n ...common,\n minify: !options?.dev,\n };\n}\n\nexport function es2022Lib(): BuildOptions {\n return {\n ...es2022App(),\n minify: false,\n packages: \"external\",\n };\n}\n"],
5
+ "mappings": ";AAEA,IAAM,SAAS;AAAA,EACb,QAAQ;AAAA,EACR,QAAQ;AAAA,EAER,QAAQ;AAAA,EACR,WAAW;AAAA,EAEX,YAAY;AAAA,EACZ,WAAW;AACb;AAEO,SAAS,UAAU,SAA2C;AACnE,SAAO;AAAA,IACL,GAAG;AAAA,IACH,QAAQ,CAAC,SAAS;AAAA,EACpB;AACF;AAEO,SAAS,YAA0B;AACxC,SAAO;AAAA,IACL,GAAG,UAAU;AAAA,IACb,QAAQ;AAAA,IACR,UAAU;AAAA,EACZ;AACF;",
6
+ "names": []
7
7
  }
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@cubing/dev-config",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "esbuild": "^0.25.3"
7
7
  },
8
8
  "devDependencies": {
9
9
  "@biomejs/biome": "^1.9.4",
10
- "@types/bun": "^1.2.12",
10
+ "@types/bun": "^1.2.13",
11
+ "@types/node": "^22.15.19",
11
12
  "typescript": "^5.8.3"
12
13
  },
13
14
  "exports": {