Skip to content

Unlock custom brushes, natural fill effects and intuitive hatching in p5.js

feat: add required dependencies

Joey Figaro939d04c41005
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000..4232995
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,50 @@
+{
+ "name": "p5.brush",
+ "version": "0.0.1-beta",
+ "lockfileVersion": 2,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "p5.brush",
+ "version": "0.0.1-beta",
+ "license": "MIT",
+ "devDependencies": {
+ "@types/p5": "^1.7.3",
+ "typescript": "^5.3.2"
+ }
+ },
+ "node_modules/@types/p5": {
+ "version": "1.7.3",
+ "resolved": "https://registry.npmjs.org/@types/p5/-/p5-1.7.3.tgz",
+ "integrity": "sha512-sYeos5Zbb5dx4jp5uDnZDtW3St6+9RtLCi7n2Rl6Ok2a5ofRIWDbXEigl++ppqgAyB20S8czlrrrmzLS1AwJPA==",
+ "dev": true
+ },
+ "node_modules/typescript": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.2.tgz",
+ "integrity": "sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ==",
+ "dev": true,
+ "bin": {
+ "tsc": "bin/tsc",
+ "tsserver": "bin/tsserver"
+ },
+ "engines": {
+ "node": ">=14.17"
+ }
+ }
+ },
+ "dependencies": {
+ "@types/p5": {
+ "version": "1.7.3",
+ "resolved": "https://registry.npmjs.org/@types/p5/-/p5-1.7.3.tgz",
+ "integrity": "sha512-sYeos5Zbb5dx4jp5uDnZDtW3St6+9RtLCi7n2Rl6Ok2a5ofRIWDbXEigl++ppqgAyB20S8czlrrrmzLS1AwJPA==",
+ "dev": true
+ },
+ "typescript": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.2.tgz",
+ "integrity": "sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ==",
+ "dev": true
+ }
+ }
+}
diff --git a/package.json b/package.json
index c8e7abb..848490f 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,8 @@
"description": "Unlock custom brushes, natural fill effects and intuitive hatching in p5.js",
"main": "p5.brush.js",
"scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
+ "test": "echo \"Error: no test specified\" && exit 1",
+ "build:types": "tsc --project tsconfig.build.json"
},
"repository": {
"type": "git",
@@ -26,5 +27,9 @@
"bugs": {
"url": "https://github.com/acamposuribe/p5.brush/issues"
},
- "homepage": "https://p5-brush.cargo.site/"
+ "homepage": "https://p5-brush.cargo.site/",
+ "devDependencies": {
+ "@types/p5": "^1.7.3",
+ "typescript": "^5.3.2"
+ }
}