@cubing/dev-config 0.3.3 → 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.
package/README.md CHANGED
@@ -32,7 +32,7 @@ await build({
32
32
  "$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
33
33
  "extends": ["./node_modules/@cubing/dev-config/biome/biome.json"],
34
34
  "files": {
35
- "ignore": [,
35
+ "ignore": [
36
36
  "./dist",
37
37
  "./package.json"
38
38
  ]
@@ -1,5 +1,5 @@
1
- "use strict";
2
- const common = {
1
+ // src/esbuild/es2022/index.ts
2
+ var common = {
3
3
  format: "esm",
4
4
  target: "es2022",
5
5
  bundle: true,
@@ -7,15 +7,21 @@ const common = {
7
7
  chunkNames: "chunks/[name]-[hash]",
8
8
  sourcemap: true
9
9
  };
10
- export function es2022App(options) {
10
+ function es2022App(options) {
11
11
  return {
12
12
  ...common,
13
13
  minify: !options?.dev
14
14
  };
15
15
  }
16
- export function es2022Lib() {
16
+ function es2022Lib() {
17
17
  return {
18
- ...es2022App,
18
+ ...es2022App(),
19
+ minify: false,
19
20
  packages: "external"
20
21
  };
21
22
  }
23
+ export {
24
+ es2022App,
25
+ es2022Lib
26
+ };
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 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 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
+ }
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@cubing/dev-config",
3
- "version": "0.3.3",
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": {