Skip to content

Commit

Permalink
chore: add initial exports + typings to manifest; update tsconfig output
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyfigaro committed Nov 22, 2023
1 parent 765f306 commit 842effb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
11 changes: 11 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"compilerOptions": {
"allowJs": true,
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": true,
"outDir": "dist",
"types": ["p5"]
},
"files": ["p5.brush.js"],
}

0 comments on commit 842effb

Please sign in to comment.