@tsparticles/cli 3.0.3 → 3.0.5
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,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { buildCommand } from "./build/build.js";
|
|
3
3
|
import { createCommand } from "./create/create.js";
|
|
4
|
-
import pkgInfo from "../package.json";
|
|
4
|
+
import pkgInfo from "../package.json" assert { type: "json" };
|
|
5
5
|
import { program } from "commander";
|
|
6
6
|
program.name("tsparticles-cli");
|
|
7
7
|
program.description("tsParticles CLI");
|
|
@@ -84,14 +84,13 @@
|
|
|
84
84
|
"prettier": "@tsparticles/prettier-config",
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"@babel/core": "^7.28.3",
|
|
87
|
-
"@tsparticles/cli": "^3.0.
|
|
87
|
+
"@tsparticles/cli": "^3.0.5",
|
|
88
88
|
"@tsparticles/eslint-config": "^3.0.3",
|
|
89
89
|
"@tsparticles/prettier-config": "^3.0.1",
|
|
90
|
-
"@tsparticles/tsconfig": "^3.0.
|
|
90
|
+
"@tsparticles/tsconfig": "^3.0.4",
|
|
91
91
|
"@tsparticles/webpack-plugin": "^3.0.3",
|
|
92
92
|
"@types/webpack-env": "^1.18.8",
|
|
93
|
-
"@typescript-eslint
|
|
94
|
-
"@typescript-eslint/parser": "^8.41.0",
|
|
93
|
+
"@typescript-eslint": "^8.41.0",
|
|
95
94
|
"babel-loader": "^10.0.0",
|
|
96
95
|
"browserslist": "^4.25.4",
|
|
97
96
|
"copyfiles": "^2.4.1",
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
import {loadParticlesTemplate} from "@tsparticles/webpack-plugin";
|
|
2
|
-
import {
|
|
3
|
-
import path from 'path';
|
|
4
|
-
import fs from 'fs';
|
|
5
|
-
|
|
6
|
-
const __filename = fileURLToPath(import.meta.url),
|
|
7
|
-
__dirname = path.dirname(__filename),
|
|
8
|
-
pkg = JSON.parse(fs.readFileSync(path.join(__dirname, 'package.json'), 'utf8')),
|
|
9
|
-
version = pkg.version;
|
|
2
|
+
import { version } from "./package.json" assert { type: "json" };
|
|
10
3
|
|
|
11
4
|
export default loadParticlesTemplate({moduleName: "empty", templateName: "Empty", version, dir: __dirname});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/cli",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@tsparticles/eslint-config": "^3.0.3",
|
|
15
15
|
"@tsparticles/prettier-config": "^3.0.1",
|
|
16
|
-
"@tsparticles/tsconfig": "^3.0.
|
|
16
|
+
"@tsparticles/tsconfig": "^3.0.4",
|
|
17
17
|
"@tsparticles/webpack-plugin": "^3.0.3",
|
|
18
18
|
"commander": "^14.0.0",
|
|
19
19
|
"eslint": "^9.34.0",
|
package/src/cli.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { buildCommand } from "./build/build.js";
|
|
3
3
|
import { createCommand } from "./create/create.js";
|
|
4
|
-
import pkgInfo from "../package.json";
|
|
4
|
+
import pkgInfo from "../package.json" assert { type: "json" };
|
|
5
5
|
import { program } from "commander";
|
|
6
6
|
|
|
7
7
|
program.name("tsparticles-cli");
|
package/src/tsconfig.json
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
|
28
28
|
|
|
29
29
|
/* Modules */
|
|
30
|
-
"module": "
|
|
30
|
+
"module": "ESNext",
|
|
31
31
|
/* Specify what module code is generated. */
|
|
32
32
|
"rootDir": ".",
|
|
33
33
|
/* Specify the root folder within your source files. */
|