@tsparticles/cli-create 4.3.2 → 4.5.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/CHANGELOG.md CHANGED
@@ -3,30 +3,30 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [4.3.2](https://github.com/tsparticles/tsparticles/compare/v4.3.1...v4.3.2) (2026-07-10)
6
+ # [4.5.0](https://github.com/tsparticles/tsparticles/compare/v4.4.0...v4.5.0) (2026-10-25)
7
7
 
8
8
  **Note:** Version bump only for package @tsparticles/cli-create
9
9
 
10
+ # [4.4.0](https://github.com/tsparticles/tsparticles/compare/v4.3.3...v4.4.0) (2026-08-30)
10
11
 
12
+ **Note:** Version bump only for package @tsparticles/cli-create
11
13
 
12
-
13
-
14
- ## [4.3.1](https://github.com/tsparticles/tsparticles/compare/v4.3.0...v4.3.1) (2026-07-01)
14
+ ## [4.3.3](https://github.com/tsparticles/tsparticles/compare/v4.3.2...v4.3.3) (2026-07-23)
15
15
 
16
16
  **Note:** Version bump only for package @tsparticles/cli-create
17
17
 
18
+ ## [4.3.2](https://github.com/tsparticles/tsparticles/compare/v4.3.1...v4.3.2) (2026-07-10)
18
19
 
20
+ **Note:** Version bump only for package @tsparticles/cli-create
19
21
 
22
+ ## [4.3.1](https://github.com/tsparticles/tsparticles/compare/v4.3.0...v4.3.1) (2026-07-01)
20
23
 
24
+ **Note:** Version bump only for package @tsparticles/cli-create
21
25
 
22
26
  # [4.3.0](https://github.com/tsparticles/tsparticles/compare/v4.2.1...v4.3.0) (2026-06-27)
23
27
 
24
28
  **Note:** Version bump only for package @tsparticles/cli-create
25
29
 
26
-
27
-
28
-
29
-
30
30
  ## [4.2.1](https://github.com/tsparticles/tsparticles/compare/v4.2.0...v4.2.1) (2026-06-19)
31
31
 
32
32
  **Note:** Version bump only for package @tsparticles/cli-create
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/cli-create",
3
- "version": "4.3.2",
3
+ "version": "4.5.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "bin": {
@@ -21,16 +21,19 @@
21
21
  "prettify:readme": "prettier --write ./README.md",
22
22
  "build": "pnpm run prettify:readme",
23
23
  "build:ci": "pnpm run prettify:ci:readme",
24
- "prepack": "pnpm run build"
24
+ "prepack": "pnpm run build",
25
+ "test": "vitest run --config vitest.config.ts",
26
+ "test:ci": "vitest run --config vitest.config.ts"
25
27
  },
26
28
  "dependencies": {
27
- "@tsparticles/cli-command-create": "4.3.2",
29
+ "@tsparticles/cli-command-create": "4.5.0",
28
30
  "commander": "^15.0.0"
29
31
  },
30
32
  "devDependencies": {
31
- "@tsparticles/prettier-config": "4.3.2"
33
+ "@tsparticles/prettier-config": "4.5.0",
34
+ "vitest": "^5.0.0"
32
35
  },
33
36
  "description": "tsParticles CLI - Create command only",
34
37
  "author": "Matteo Bruni <matteo.bruni@me.com>",
35
- "gitHead": "527bc42f2324fbb9b93262efa3d90a5517532b8b"
38
+ "gitHead": "a637373a03c008ab38edaaecf6524ec4b8e332c0"
36
39
  }
@@ -0,0 +1,30 @@
1
+ /* eslint-disable */
2
+ import { execFileSync } from "node:child_process";
3
+ import { existsSync } from "node:fs";
4
+ import path from "node:path";
5
+ import { describe, expect, it } from "vitest";
6
+
7
+ const binPath = path.join(__dirname, "..", "bin", "tsparticles-create.cjs");
8
+
9
+ function runBin(args: string[]): string {
10
+ return execFileSync(process.execPath, [binPath, ...args], {
11
+ encoding: "utf-8",
12
+ stdio: ["ignore", "pipe", "pipe"],
13
+ }).trim();
14
+ }
15
+
16
+ describe("tsparticles-create CLI", () => {
17
+ it("should expose the bin file", () => {
18
+ expect(existsSync(binPath)).toBe(true);
19
+ });
20
+
21
+ it("should print the package version", () => {
22
+ expect(runBin(["--version"])).toMatch(/^\d+\.\d+\.\d+/);
23
+ });
24
+
25
+ it("should print help with the create command", () => {
26
+ const output = runBin(["--help"]);
27
+
28
+ expect(output).toContain("create");
29
+ });
30
+ });
@@ -0,0 +1,7 @@
1
+ import { defineConfig } from "vitest/config";
2
+
3
+ export default defineConfig({
4
+ test: {
5
+ include: ["tests/**/*.test.ts"],
6
+ },
7
+ });