create-cloud-db 1.0.34 → 1.0.48

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
@@ -90,4 +90,10 @@ export default defineConfig({
90
90
 
91
91
  ## 📝 License
92
92
 
93
- MIT License - Star this repo so it can grow features! 🌟
93
+ MIT License - Star this repo so it can grow features! 🌟
94
+
95
+ ---
96
+
97
+ [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request)
98
+
99
+ Please star this repo for updates! 🌟
package/package.json CHANGED
@@ -3,14 +3,17 @@
3
3
  "description": "CLI to create a Turso database and write TURSO_* env vars to .env file",
4
4
  "type": "module",
5
5
  "author": "vtempest",
6
- "version": "1.0.34",
6
+ "version": "1.0.48",
7
7
  "main": "create-cloud-db.js",
8
8
  "bin": {
9
9
  "create-cloud-db": "./create-cloud-db.js"
10
10
  },
11
11
  "scripts": {
12
12
  "ship": "npx standard-version --release-as patch; rm CHANGELOG.md; npm publish",
13
- "start": "node create-cloud-db.js"
13
+ "start": "node create-cloud-db.js",
14
+ "test": "vitest run",
15
+ "test:watch": "vitest",
16
+ "coverage": "vitest run --coverage"
14
17
  },
15
18
  "repository": {
16
19
  "type": "git",
@@ -23,5 +26,9 @@
23
26
  "cli",
24
27
  "env"
25
28
  ],
26
- "license": "MIT"
29
+ "license": "MIT",
30
+ "devDependencies": {
31
+ "@vitest/coverage-v8": "^4.1.0",
32
+ "vitest": "^4.1.0"
33
+ }
27
34
  }
@@ -0,0 +1,34 @@
1
+ /// <reference types="vitest/config" />
2
+ import { defineConfig } from "vitest/config";
3
+
4
+ // Per-package Vitest setup. Coverage is written to this package's own
5
+ // ./coverage/lcov.info so Codecov can flag it under "create-cloud-db".
6
+ export default defineConfig({
7
+ test: {
8
+ environment: "node",
9
+ include: ["{test,tests,src}/**/*.{test,spec}.{js,mjs,ts,tsx}"],
10
+ exclude: ["**/node_modules/**", "**/dist/**"],
11
+ // Infrastructure is in place before every package has a suite.
12
+ passWithNoTests: true,
13
+ coverage: {
14
+ provider: "v8",
15
+ reporter: ["text", "json", "lcov"],
16
+ reportsDirectory: "./coverage",
17
+ reportOnFailure: true,
18
+ include: [
19
+ "create-cloud-db.js",
20
+ ],
21
+ exclude: [
22
+ "**/node_modules/**",
23
+ "**/dist/**",
24
+ "**/build/**",
25
+ "**/coverage/**",
26
+ "**/demo/**",
27
+ "**/*.d.ts",
28
+ "**/*.config.*",
29
+ "**/*.{test,spec}.*",
30
+ "**/*.template.*",
31
+ ],
32
+ },
33
+ },
34
+ });