Skip to content

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

chore: add initial exports + typings to manifest; update tsconfig output

Joey Figaro842effb56d88
diff --git a/package.json b/package.json
index 848490f..7ef4cec 100644
--- a/package.json
+++ b/package.json
@@ -11,6 +11,15 @@
"type": "git",
"url": "git+https://github.com/acamposuribe/p5.brush.git"
},
+ "typings": "dist/p5.brush.d.ts",
+ "exports": {
+ ".": {
+ "import": "./p5.brush.js",
+ "require": "./p5.brush.js",
+ "types": "./dist/p5.brush.d.ts"
+ },
+ "./minified": "./p5.brush.min.js"
+ },
"keywords": [
"brush",
"children",
diff --git a/tsconfig.build.json b/tsconfig.build.json
new file mode 100644
index 0000000..a51edbc
--- /dev/null
+++ b/tsconfig.build.json
@@ -0,0 +1,11 @@
+{
+ "compilerOptions": {
+ "allowJs": true,
+ "declaration": true,
+ "declarationMap": true,
+ "emitDeclarationOnly": true,
+ "outDir": "dist",
+ "types": ["p5"]
+ },
+ "files": ["p5.brush.js"],
+}
\ No newline at end of file