Skip to content

Commit

Permalink
fix: exclude dist from ts compile
Browse files Browse the repository at this point in the history
  • Loading branch information
roggervalf committed Jan 22, 2020
1 parent 4347bd2 commit 9b6b754
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# iam-policies

>
>
[![NPM](https://img.shields.io/npm/v/iam-policies.svg)](https://www.npmjs.com/package/iam-policies) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

Expand Down Expand Up @@ -52,7 +52,7 @@ const context = { user: { id: 456, bestfriends: [123, 563, 1211] } }
role.can('read', 'secrets:563:sshhh', context)
// false
role.can('read', 'secrets:admin:super-secret', context)

const friendsWithAdminContext = { user: { id: 456, bestfriends: ['admin'] } }

// false
Expand Down Expand Up @@ -88,7 +88,7 @@ const roleWithCondition = new Role([
}
},
], conditions)

// true
roleWithCondition.can('read', 'secrets:sshhh', { user: { age: 19 } })
// false
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
},
"license": "MIT",
"repository": "Rogger794/iam-policies",
"deprecated": false,
"description": "Identity based policies library",
"version": "1.3.1",
"keywords": [
Expand All @@ -14,11 +13,11 @@
"iam-policies"
],
"name": "iam-policies",
"private": false,
"bugs": {
"url": "https://github.com/Rogger794/iam-policies/issues"
},
"homepage": "https://github.com/Rogger794/iam-policies#readme",
"publishConfig": { "registry": "https://npm.pkg.github.com/" },
"engines": {
"node": ">=10",
"npm": ">=6"
Expand All @@ -39,6 +38,7 @@
"main": "dist/main.js",
"module": "dist/main.es.js",
"jsnext:main": "dist/main.es.js",
"typings": "dist/main.d.ts",
"devDependencies": {
"@babel/core": "^7.7.2",
"@babel/preset-env": "^7.7.1",
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
"declaration": true,
"outDir": "./dist",
"strict": true,
"allowSyntheticDefaultImports": true
"allowSyntheticDefaultImports": true,
},
"exclude": [
"tests",
"dist"
]
}

0 comments on commit 9b6b754

Please sign in to comment.