@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 +16 -3
- package/esbuild/es2022/index.d.ts +9 -0
- package/esbuild/es2022/index.js +14 -0
- package/esbuild/es2022/index.js.map +7 -0
- package/package.json +22 -1
- package/ts/es2022-types/no-dom/tsconfig.json +1 -1
- package/ts/es2022-types/tsconfig.json +1 -1
- package/.github/workflows/publish-github-release.yaml +0 -13
- package/Makefile +0 -15
- package/index.ts +0 -1
- package/tsconfig.json +0 -28
package/README.md
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
# `@cubing/dev-config`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Usage
|
|
4
4
|
|
|
5
|
-
### `
|
|
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,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.
|
|
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
|
}
|
package/Makefile
DELETED
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
|
-
}
|