@cubing/dev-config 0.1.1 → 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
@@ -1,8 +1,21 @@
1
- ## `@cubing/dev-config`
1
+ # `@cubing/dev-config`
2
2
 
3
- ### Usage
3
+ ## Usage
4
4
 
5
- ### `es2022-types`
5
+ ### `esbuild`
6
+
7
+ ```js
8
+ import { es2022 } from "@cubing/dev-config/esbuild/es2022";
9
+ import { build } from "esbuild";
10
+
11
+ await build({
12
+ ...es2022,
13
+ entryPoints: ["./src/index.ts"],
14
+ outdir: "./dist/lib/",
15
+ });
16
+ ```
17
+
18
+ ### TypeScript
6
19
 
7
20
  ### Check types
8
21
 
@@ -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,4 +1,25 @@
1
1
  {
2
2
  "name": "@cubing/dev-config",
3
- "version": "0.1.1"
3
+ "version": "0.2.0",
4
+ "dependencies": {
5
+ "esbuild": "^0.25.3"
6
+ },
7
+ "devDependencies": {
8
+ "@biomejs/biome": "^1.9.4",
9
+ "@types/bun": "^1.2.12",
10
+ "typescript": "^5.8.3"
11
+ },
12
+ "exports": {
13
+ "./esbuild/es2022": {
14
+ "types": "./esbuild/es2022/index.d.ts",
15
+ "import": "./esbuild/es2022/index.js"
16
+ }
17
+ },
18
+ "scripts": {
19
+ "prepublishOnly": "make prepublishOnly"
20
+ },
21
+ "files": [
22
+ "./esbuild/",
23
+ "./ts/"
24
+ ]
4
25
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "extends": "../tsconfig.json",
3
3
  "compilerOptions": {
4
- "lib": ["es2022"],
4
+ "lib": ["es2022"]
5
5
  }
6
6
  }
@@ -9,7 +9,7 @@
9
9
  "declaration": true,
10
10
  "emitDeclarationOnly": true,
11
11
  "verbatimModuleSyntax": true,
12
-
12
+
13
13
  "noFallthroughCasesInSwitch": true,
14
14
  "noImplicitAny": true,
15
15
  "noImplicitOverride": true,
@@ -1,13 +0,0 @@
1
- name: Publish GitHub release
2
-
3
- on:
4
- push:
5
- tags:
6
- - v*
7
-
8
- jobs:
9
- Publish:
10
- permissions:
11
- contents: write
12
- if: startsWith(github.ref, 'refs/tags/v')
13
- uses: cubing/actions-workflows/.github/workflows/publish-github-release.yaml@main
package/Makefile DELETED
@@ -1,15 +0,0 @@
1
- .PHONY: setup
2
- setup:
3
- bun install --frozen-lockfile
4
-
5
- .PHONY: publish
6
- publish:
7
- npm publish
8
-
9
- .PHONY: clean
10
- clean:
11
- # no-op
12
-
13
- .PHONY: reset
14
- reset: clean
15
- rm -rf ./node_modules
package/index.ts DELETED
@@ -1 +0,0 @@
1
- console.log("Hello via Bun!");
package/tsconfig.json DELETED
@@ -1,28 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- // Environment setup & latest features
4
- "lib": ["ESNext"],
5
- "target": "ESNext",
6
- "module": "ESNext",
7
- "moduleDetection": "force",
8
- "jsx": "react-jsx",
9
- "allowJs": true,
10
-
11
- // Bundler mode
12
- "moduleResolution": "bundler",
13
- "allowImportingTsExtensions": true,
14
- "verbatimModuleSyntax": true,
15
- "noEmit": true,
16
-
17
- // Best practices
18
- "strict": true,
19
- "skipLibCheck": true,
20
- "noFallthroughCasesInSwitch": true,
21
- "noUncheckedIndexedAccess": true,
22
-
23
- // Some stricter flags (disabled by default)
24
- "noUnusedLocals": false,
25
- "noUnusedParameters": false,
26
- "noPropertyAccessFromIndexSignature": false
27
- }
28
- }