@cubing/dev-config 0.1.2 → 0.2.0

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
@@ -10,7 +10,7 @@ import { build } from "esbuild";
10
10
 
11
11
  await build({
12
12
  ...es2022,
13
- entryPoints: ["src/index.ts"],
13
+ entryPoints: ["./src/index.ts"],
14
14
  outdir: "./dist/lib/",
15
15
  });
16
16
  ```
@@ -0,0 +1,9 @@
1
+ export declare const es2022: {
2
+ readonly format: "esm";
3
+ readonly target: "es2022";
4
+ readonly bundle: true;
5
+ readonly splitting: true;
6
+ readonly chunkNames: "chunks/[name]-[hash]";
7
+ readonly sourcemap: true;
8
+ readonly packages: "external";
9
+ };
@@ -0,0 +1,14 @@
1
+ // src/esbuild/es2022/index.ts
2
+ var es2022 = {
3
+ format: "esm",
4
+ target: "es2022",
5
+ bundle: true,
6
+ splitting: true,
7
+ chunkNames: "chunks/[name]-[hash]",
8
+ sourcemap: true,
9
+ packages: "external"
10
+ };
11
+ export {
12
+ es2022
13
+ };
14
+ //# 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\nexport const es2022 = {\n format: \"esm\",\n target: \"es2022\",\n\n bundle: true,\n splitting: true,\n\n chunkNames: \"chunks/[name]-[hash]\",\n sourcemap: true,\n\n packages: \"external\",\n} as const satisfies BuildOptions;\n"],
5
+ "mappings": ";AAEO,IAAM,SAAS;AAAA,EACpB,QAAQ;AAAA,EACR,QAAQ;AAAA,EAER,QAAQ;AAAA,EACR,WAAW;AAAA,EAEX,YAAY;AAAA,EACZ,WAAW;AAAA,EAEX,UAAU;AACZ;",
6
+ "names": []
7
+ }
package/package.json CHANGED
@@ -1,17 +1,23 @@
1
1
  {
2
2
  "name": "@cubing/dev-config",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "dependencies": {
5
5
  "esbuild": "^0.25.3"
6
6
  },
7
7
  "devDependencies": {
8
- "@biomejs/biome": "^1.9.4"
8
+ "@biomejs/biome": "^1.9.4",
9
+ "@types/bun": "^1.2.12",
10
+ "typescript": "^5.8.3"
9
11
  },
10
12
  "exports": {
11
13
  "./esbuild/es2022": {
12
- "import": "./esbuild/es2022/index.ts"
14
+ "types": "./esbuild/es2022/index.d.ts",
15
+ "import": "./esbuild/es2022/index.js"
13
16
  }
14
17
  },
18
+ "scripts": {
19
+ "prepublishOnly": "make prepublishOnly"
20
+ },
15
21
  "files": [
16
22
  "./esbuild/",
17
23
  "./ts/"
@@ -1,14 +0,0 @@
1
- import type { BuildOptions } from "esbuild";
2
-
3
- export const es2022 = {
4
- format: "esm",
5
- target: "es2022",
6
-
7
- bundle: true,
8
- splitting: true,
9
-
10
- chunkNames: "chunks/[name]-[hash]",
11
- sourcemap: true,
12
-
13
- packages: "external",
14
- } as const satisfies BuildOptions;