Skip to content

Commit 61bd03e

Browse files
committed
build: updated imports
1 parent e8da7df commit 61bd03e

File tree

10 files changed

+44
-44
lines changed

10 files changed

+44
-44
lines changed

files/empty-project/package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -83,29 +83,29 @@
8383
"types": "dist/types/index.d.ts",
8484
"prettier": "@tsparticles/prettier-config",
8585
"devDependencies": {
86-
"@babel/core": "^7.23.9",
86+
"@babel/core": "^7.28.3",
8787
"@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",
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",
9797
"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"
107107
},
108108
"dependencies": {
109-
"@tsparticles/engine": "^3.3.0"
109+
"@tsparticles/engine": "^3.9.1"
110110
}
111111
}

src/cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/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";
44
import pkgInfo from "../package.json";
55
import { program } from "commander";
66

src/create/create.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
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";
55

66
const createCommand = new Command("create");
77

src/create/plugin/create-plugin.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { camelize, capitalize, dash } from "../../utils/string-utils";
1+
import { camelize, capitalize, dash } from "../../utils/string-utils.js";
22
import {
33
copyEmptyTemplateFiles,
44
copyFilter,
@@ -7,10 +7,10 @@ import {
77
updatePackageDistFile,
88
updatePackageFile,
99
updateWebpackFile,
10-
} from "../../utils/template-utils";
10+
} from "../../utils/template-utils.js";
1111
import fs from "fs-extra";
1212
import path from "path";
13-
import { replaceTokensInFile } from "../../utils/file-utils";
13+
import { replaceTokensInFile } from "../../utils/file-utils.js";
1414

1515
/**
1616
* Updates the index file with the correct function name

src/create/plugin/plugin.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { getDestinationDir, getRepositoryUrl } from "../../utils/file-utils";
1+
import { getDestinationDir, getRepositoryUrl } from "../../utils/file-utils.js";
22
import prompts, { type PromptObject } from "prompts";
33
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";
66
import path from "path";
77

88
const pluginCommand = new Command("plugin");

src/create/preset/create-preset.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { camelize, capitalize, dash } from "../../utils/string-utils";
1+
import { camelize, capitalize, dash } from "../../utils/string-utils.js";
22
import {
33
copyEmptyTemplateFiles,
44
copyFilter,
@@ -7,10 +7,10 @@ import {
77
updatePackageDistFile,
88
updatePackageFile,
99
updateWebpackFile,
10-
} from "../../utils/template-utils";
10+
} from "../../utils/template-utils.js";
1111
import fs from "fs-extra";
1212
import path from "path";
13-
import { replaceTokensInFile } from "../../utils/file-utils";
13+
import { replaceTokensInFile } from "../../utils/file-utils.js";
1414

1515
/**
1616
* Updates the bundle file with the correct function name

src/create/preset/preset.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { getDestinationDir, getRepositoryUrl } from "../../utils/file-utils";
1+
import { getDestinationDir, getRepositoryUrl } from "../../utils/file-utils.js";
22
import prompts, { type PromptObject } from "prompts";
33
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";
66
import path from "path";
77

88
const presetCommand = new Command("preset");

src/create/shape/create-shape.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { camelize, capitalize, dash } from "../../utils/string-utils";
1+
import { camelize, capitalize, dash } from "../../utils/string-utils.js";
22
import {
33
copyEmptyTemplateFiles,
44
copyFilter,
@@ -7,10 +7,10 @@ import {
77
updatePackageDistFile,
88
updatePackageFile,
99
updateWebpackFile,
10-
} from "../../utils/template-utils";
10+
} from "../../utils/template-utils.js";
1111
import fs from "fs-extra";
1212
import path from "path";
13-
import { replaceTokensInFile } from "../../utils/file-utils";
13+
import { replaceTokensInFile } from "../../utils/file-utils.js";
1414

1515
/**
1616
* Updates the index file with the correct function name

src/create/shape/shape.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { getDestinationDir, getRepositoryUrl } from "../../utils/file-utils";
1+
import { getDestinationDir, getRepositoryUrl } from "../../utils/file-utils.js";
22
import prompts, { type PromptObject } from "prompts";
33
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";
66
import path from "path";
77

88
const shapeCommand = new Command("shape");

src/utils/template-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { exec } from "child_process";
22
import fs from "fs-extra";
33
import { lookpath } from "lookpath";
44
import path from "path";
5-
import { replaceTokensInFile } from "./file-utils";
5+
import { replaceTokensInFile } from "./file-utils.js";
66

77
/**
88
* Updates the package.json file

0 commit comments

Comments
 (0)