@tsparticles/cli 3.0.2 → 3.0.3

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/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { buildCommand } from "./build/build";
3
- import { createCommand } from "./create/create";
2
+ import { buildCommand } from "./build/build.js";
3
+ import { createCommand } from "./create/create.js";
4
4
  import pkgInfo from "../package.json";
5
5
  import { program } from "commander";
6
6
  program.name("tsparticles-cli");
@@ -1,7 +1,7 @@
1
1
  import { Command } from "commander";
2
- import { pluginCommand } from "./plugin/plugin";
3
- import { presetCommand } from "./preset/preset";
4
- import { shapeCommand } from "./shape/shape";
2
+ import { pluginCommand } from "./plugin/plugin.js";
3
+ import { presetCommand } from "./preset/preset.js";
4
+ import { shapeCommand } from "./shape/shape.js";
5
5
  const createCommand = new Command("create");
6
6
  createCommand.description("Create a new tsParticles project");
7
7
  createCommand.addCommand(pluginCommand);
@@ -1,8 +1,8 @@
1
- import { camelize, capitalize, dash } from "../../utils/string-utils";
2
- import { copyEmptyTemplateFiles, copyFilter, runBuild, runInstall, updatePackageDistFile, updatePackageFile, updateWebpackFile, } from "../../utils/template-utils";
1
+ import { camelize, capitalize, dash } from "../../utils/string-utils.js";
2
+ import { copyEmptyTemplateFiles, copyFilter, runBuild, runInstall, updatePackageDistFile, updatePackageFile, updateWebpackFile, } from "../../utils/template-utils.js";
3
3
  import fs from "fs-extra";
4
4
  import path from "path";
5
- import { replaceTokensInFile } from "../../utils/file-utils";
5
+ import { replaceTokensInFile } from "../../utils/file-utils.js";
6
6
  /**
7
7
  * Updates the index file with the correct function name
8
8
  * @param destPath - The path where the project is located
@@ -1,8 +1,8 @@
1
- import { getDestinationDir, getRepositoryUrl } from "../../utils/file-utils";
1
+ import { getDestinationDir, getRepositoryUrl } from "../../utils/file-utils.js";
2
2
  import prompts from "prompts";
3
3
  import { Command } from "commander";
4
- import { capitalize } from "../../utils/string-utils";
5
- import { createPluginTemplate } from "./create-plugin";
4
+ import { capitalize } from "../../utils/string-utils.js";
5
+ import { createPluginTemplate } from "./create-plugin.js";
6
6
  import path from "path";
7
7
  const pluginCommand = new Command("plugin");
8
8
  pluginCommand.description("Create a new tsParticles plugin");
@@ -1,8 +1,8 @@
1
- import { camelize, capitalize, dash } from "../../utils/string-utils";
2
- import { copyEmptyTemplateFiles, copyFilter, runBuild, runInstall, updatePackageDistFile, updatePackageFile, updateWebpackFile, } from "../../utils/template-utils";
1
+ import { camelize, capitalize, dash } from "../../utils/string-utils.js";
2
+ import { copyEmptyTemplateFiles, copyFilter, runBuild, runInstall, updatePackageDistFile, updatePackageFile, updateWebpackFile, } from "../../utils/template-utils.js";
3
3
  import fs from "fs-extra";
4
4
  import path from "path";
5
- import { replaceTokensInFile } from "../../utils/file-utils";
5
+ import { replaceTokensInFile } from "../../utils/file-utils.js";
6
6
  /**
7
7
  * Updates the bundle file with the correct function name
8
8
  * @param destPath - The path where the project is located
@@ -1,8 +1,8 @@
1
- import { getDestinationDir, getRepositoryUrl } from "../../utils/file-utils";
1
+ import { getDestinationDir, getRepositoryUrl } from "../../utils/file-utils.js";
2
2
  import prompts from "prompts";
3
3
  import { Command } from "commander";
4
- import { capitalize } from "../../utils/string-utils";
5
- import { createPresetTemplate } from "./create-preset";
4
+ import { capitalize } from "../../utils/string-utils.js";
5
+ import { createPresetTemplate } from "./create-preset.js";
6
6
  import path from "path";
7
7
  const presetCommand = new Command("preset");
8
8
  presetCommand.description("Create a new tsParticles preset");
@@ -1,8 +1,8 @@
1
- import { camelize, capitalize, dash } from "../../utils/string-utils";
2
- import { copyEmptyTemplateFiles, copyFilter, runBuild, runInstall, updatePackageDistFile, updatePackageFile, updateWebpackFile, } from "../../utils/template-utils";
1
+ import { camelize, capitalize, dash } from "../../utils/string-utils.js";
2
+ import { copyEmptyTemplateFiles, copyFilter, runBuild, runInstall, updatePackageDistFile, updatePackageFile, updateWebpackFile, } from "../../utils/template-utils.js";
3
3
  import fs from "fs-extra";
4
4
  import path from "path";
5
- import { replaceTokensInFile } from "../../utils/file-utils";
5
+ import { replaceTokensInFile } from "../../utils/file-utils.js";
6
6
  /**
7
7
  * Updates the index file with the correct function name
8
8
  * @param destPath - The path where the project is located
@@ -1,8 +1,8 @@
1
- import { getDestinationDir, getRepositoryUrl } from "../../utils/file-utils";
1
+ import { getDestinationDir, getRepositoryUrl } from "../../utils/file-utils.js";
2
2
  import prompts from "prompts";
3
3
  import { Command } from "commander";
4
- import { capitalize } from "../../utils/string-utils";
5
- import { createShapeTemplate } from "./create-shape";
4
+ import { capitalize } from "../../utils/string-utils.js";
5
+ import { createShapeTemplate } from "./create-shape.js";
6
6
  import path from "path";
7
7
  const shapeCommand = new Command("shape");
8
8
  shapeCommand.description("Create a new tsParticles shape");
@@ -2,7 +2,7 @@ import { exec } from "child_process";
2
2
  import fs from "fs-extra";
3
3
  import { lookpath } from "lookpath";
4
4
  import path from "path";
5
- import { replaceTokensInFile } from "./file-utils";
5
+ import { replaceTokensInFile } from "./file-utils.js";
6
6
  /**
7
7
  * Updates the package.json file
8
8
  * @param destPath - The path where the package.json file is located
@@ -83,29 +83,29 @@
83
83
  "types": "dist/types/index.d.ts",
84
84
  "prettier": "@tsparticles/prettier-config",
85
85
  "devDependencies": {
86
- "@babel/core": "^7.23.9",
87
- "@tsparticles/cli": "^3.0.2",
88
- "@tsparticles/eslint-config": "^2.2.1",
89
- "@tsparticles/prettier-config": "^2.1.6",
90
- "@tsparticles/tsconfig": "^2.1.7",
91
- "@tsparticles/webpack-plugin": "^2.2.1",
92
- "@types/webpack-env": "^1.18.4",
93
- "@typescript-eslint/eslint-plugin": "^7.1.0",
94
- "@typescript-eslint/parser": "^7.1.0",
95
- "babel-loader": "^9.1.3",
96
- "browserslist": "^4.23.0",
86
+ "@babel/core": "^7.28.3",
87
+ "@tsparticles/cli": "^3.0.3",
88
+ "@tsparticles/eslint-config": "^3.0.3",
89
+ "@tsparticles/prettier-config": "^3.0.1",
90
+ "@tsparticles/tsconfig": "^3.0.1",
91
+ "@tsparticles/webpack-plugin": "^3.0.3",
92
+ "@types/webpack-env": "^1.18.8",
93
+ "@typescript-eslint/eslint-plugin": "^8.41.0",
94
+ "@typescript-eslint/parser": "^8.41.0",
95
+ "babel-loader": "^10.0.0",
96
+ "browserslist": "^4.25.4",
97
97
  "copyfiles": "^2.4.1",
98
- "eslint": "^8.56.0",
99
- "eslint-config-prettier": "^9.1.0",
100
- "prettier": "^3.2.4",
101
- "rimraf": "^5.0.5",
102
- "terser-webpack-plugin": "^5.3.10",
103
- "typescript": "^5.3.3",
104
- "webpack": "^5.90.0",
105
- "webpack-bundle-analyzer": "^4.10.1",
106
- "webpack-cli": "^5.1.4"
98
+ "eslint": "^9.34.0",
99
+ "eslint-config-prettier": "^10.1.8",
100
+ "prettier": "^3.6.2",
101
+ "rimraf": "^6.0.1",
102
+ "terser-webpack-plugin": "^5.3.14",
103
+ "typescript": "^5.9.2",
104
+ "webpack": "^5.101.3",
105
+ "webpack-bundle-analyzer": "^4.10.2",
106
+ "webpack-cli": "^6.0.1"
107
107
  },
108
108
  "dependencies": {
109
- "@tsparticles/engine": "^3.3.0"
109
+ "@tsparticles/engine": "^3.9.1"
110
110
  }
111
111
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/cli",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { buildCommand } from "./build/build";
3
- import { createCommand } from "./create/create";
2
+ import { buildCommand } from "./build/build.js";
3
+ import { createCommand } from "./create/create.js";
4
4
  import pkgInfo from "../package.json";
5
5
  import { program } from "commander";
6
6
 
@@ -1,7 +1,7 @@
1
1
  import { Command } from "commander";
2
- import { pluginCommand } from "./plugin/plugin";
3
- import { presetCommand } from "./preset/preset";
4
- import { shapeCommand } from "./shape/shape";
2
+ import { pluginCommand } from "./plugin/plugin.js";
3
+ import { presetCommand } from "./preset/preset.js";
4
+ import { shapeCommand } from "./shape/shape.js";
5
5
 
6
6
  const createCommand = new Command("create");
7
7
 
@@ -1,4 +1,4 @@
1
- import { camelize, capitalize, dash } from "../../utils/string-utils";
1
+ import { camelize, capitalize, dash } from "../../utils/string-utils.js";
2
2
  import {
3
3
  copyEmptyTemplateFiles,
4
4
  copyFilter,
@@ -7,10 +7,10 @@ import {
7
7
  updatePackageDistFile,
8
8
  updatePackageFile,
9
9
  updateWebpackFile,
10
- } from "../../utils/template-utils";
10
+ } from "../../utils/template-utils.js";
11
11
  import fs from "fs-extra";
12
12
  import path from "path";
13
- import { replaceTokensInFile } from "../../utils/file-utils";
13
+ import { replaceTokensInFile } from "../../utils/file-utils.js";
14
14
 
15
15
  /**
16
16
  * Updates the index file with the correct function name
@@ -1,8 +1,8 @@
1
- import { getDestinationDir, getRepositoryUrl } from "../../utils/file-utils";
1
+ import { getDestinationDir, getRepositoryUrl } from "../../utils/file-utils.js";
2
2
  import prompts, { type PromptObject } from "prompts";
3
3
  import { Command } from "commander";
4
- import { capitalize } from "../../utils/string-utils";
5
- import { createPluginTemplate } from "./create-plugin";
4
+ import { capitalize } from "../../utils/string-utils.js";
5
+ import { createPluginTemplate } from "./create-plugin.js";
6
6
  import path from "path";
7
7
 
8
8
  const pluginCommand = new Command("plugin");
@@ -1,4 +1,4 @@
1
- import { camelize, capitalize, dash } from "../../utils/string-utils";
1
+ import { camelize, capitalize, dash } from "../../utils/string-utils.js";
2
2
  import {
3
3
  copyEmptyTemplateFiles,
4
4
  copyFilter,
@@ -7,10 +7,10 @@ import {
7
7
  updatePackageDistFile,
8
8
  updatePackageFile,
9
9
  updateWebpackFile,
10
- } from "../../utils/template-utils";
10
+ } from "../../utils/template-utils.js";
11
11
  import fs from "fs-extra";
12
12
  import path from "path";
13
- import { replaceTokensInFile } from "../../utils/file-utils";
13
+ import { replaceTokensInFile } from "../../utils/file-utils.js";
14
14
 
15
15
  /**
16
16
  * Updates the bundle file with the correct function name
@@ -1,8 +1,8 @@
1
- import { getDestinationDir, getRepositoryUrl } from "../../utils/file-utils";
1
+ import { getDestinationDir, getRepositoryUrl } from "../../utils/file-utils.js";
2
2
  import prompts, { type PromptObject } from "prompts";
3
3
  import { Command } from "commander";
4
- import { capitalize } from "../../utils/string-utils";
5
- import { createPresetTemplate } from "./create-preset";
4
+ import { capitalize } from "../../utils/string-utils.js";
5
+ import { createPresetTemplate } from "./create-preset.js";
6
6
  import path from "path";
7
7
 
8
8
  const presetCommand = new Command("preset");
@@ -1,4 +1,4 @@
1
- import { camelize, capitalize, dash } from "../../utils/string-utils";
1
+ import { camelize, capitalize, dash } from "../../utils/string-utils.js";
2
2
  import {
3
3
  copyEmptyTemplateFiles,
4
4
  copyFilter,
@@ -7,10 +7,10 @@ import {
7
7
  updatePackageDistFile,
8
8
  updatePackageFile,
9
9
  updateWebpackFile,
10
- } from "../../utils/template-utils";
10
+ } from "../../utils/template-utils.js";
11
11
  import fs from "fs-extra";
12
12
  import path from "path";
13
- import { replaceTokensInFile } from "../../utils/file-utils";
13
+ import { replaceTokensInFile } from "../../utils/file-utils.js";
14
14
 
15
15
  /**
16
16
  * Updates the index file with the correct function name
@@ -1,8 +1,8 @@
1
- import { getDestinationDir, getRepositoryUrl } from "../../utils/file-utils";
1
+ import { getDestinationDir, getRepositoryUrl } from "../../utils/file-utils.js";
2
2
  import prompts, { type PromptObject } from "prompts";
3
3
  import { Command } from "commander";
4
- import { capitalize } from "../../utils/string-utils";
5
- import { createShapeTemplate } from "./create-shape";
4
+ import { capitalize } from "../../utils/string-utils.js";
5
+ import { createShapeTemplate } from "./create-shape.js";
6
6
  import path from "path";
7
7
 
8
8
  const shapeCommand = new Command("shape");
@@ -2,7 +2,7 @@ import { exec } from "child_process";
2
2
  import fs from "fs-extra";
3
3
  import { lookpath } from "lookpath";
4
4
  import path from "path";
5
- import { replaceTokensInFile } from "./file-utils";
5
+ import { replaceTokensInFile } from "./file-utils.js";
6
6
 
7
7
  /**
8
8
  * Updates the package.json file