Skip to content

Commit

Permalink
trying out build files syntax
Browse files Browse the repository at this point in the history
to ignore all files being copied to package output
  • Loading branch information
syedhasandigi committed Oct 15, 2024
1 parent 1427212 commit 40f4a4d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
12 changes: 12 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.github/
node_modules/
dtdl/
src/
test/
types/
.depcheck
.prettierrc
.swcrc
eslint.config.mjs
package-lock.json
tsconfig.json
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"import": "./build/index.js"
},
"types": "./build/index.d.ts",
"files": [
"build/"
],
"scripts": {
"test": "NODE_ENV=test ./node_modules/.bin/mocha --config ./test/mocharc.json ./src/**/*.test.ts",
"build": "npm run build:ts && npm run interop:build && npm run build:declarations",
Expand All @@ -24,10 +27,6 @@
"type": "git",
"url": "git+https://github.com/digicatapult/dtdl-parser.git"
},
"files": [
"build",
""
],
"keywords": [
"dtdl",
"digital",
Expand Down

0 comments on commit 40f4a4d

Please sign in to comment.