@cubing/dev-config 0.1.0 → 0.1.1

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,15 +1,49 @@
1
- # dev-config
1
+ ## `@cubing/dev-config`
2
2
 
3
- To install dependencies:
3
+ ### Usage
4
4
 
5
- ```bash
6
- bun install
5
+ ### `es2022-types`
6
+
7
+ ### Check types
8
+
9
+ ```jsonc
10
+ // tsconfig.json
11
+ {
12
+ "extends": "./node_modules/@cubing/dev-config/ts/es2022-types/tsconfig.json",
13
+ "include": ["./src/"]
14
+ }
7
15
  ```
8
16
 
9
- To run:
17
+ ```shell
18
+ npx tsc --noEmit --project . # using node
19
+ bun x tsc --noEmit --project . # using bun
20
+ ```
10
21
 
11
- ```bash
12
- bun run index.ts
22
+ ### Build types
23
+
24
+ ```jsonc
25
+ // tsconfig.json
26
+ {
27
+ "extends": "./node_modules/@cubing/dev-config/ts/es2022-types/tsconfig.json",
28
+ "compilerOptions": {
29
+ "outDir": "./dist/lib/types"
30
+ },
31
+ "include": ["./src/"]
32
+ }
13
33
  ```
14
34
 
15
- This project was created using `bun init` in bun v1.2.11. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
35
+ ```shell
36
+ npx tsc --project . # using node
37
+ bun x tsc --project . # using bun
38
+ ```
39
+
40
+ ## No DOM
41
+
42
+ Use the `no-dom` variant instead:
43
+
44
+ ```jsonc
45
+ // tsconfig.json
46
+ {
47
+ "extends": "./node_modules/@cubing/dev-config/ts/es2022-types/no-dom/tsconfig.json"
48
+ }
49
+ ```
package/package.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@cubing/dev-config",
3
- "version": "0.1.0"
3
+ "version": "0.1.1"
4
4
  }
@@ -8,13 +8,16 @@
8
8
  "outDir": "dist/types",
9
9
  "declaration": true,
10
10
  "emitDeclarationOnly": true,
11
-
12
11
  "verbatimModuleSyntax": true,
13
- "strict": true,
12
+
14
13
  "noFallthroughCasesInSwitch": true,
14
+ "noImplicitAny": true,
15
+ "noImplicitOverride": true,
16
+ "noImplicitReturns": true,
17
+ "noPropertyAccessFromIndexSignature": true,
15
18
  "noUnusedLocals": true,
16
19
  "noUnusedParameters": true,
17
- "noPropertyAccessFromIndexSignature": true,
20
+ "strict": true,
18
21
  "strictNullChecks": true
19
22
  }
20
23
  }