Skip to content

Commit

Permalink
feat(package): add types to add TS to Node.js exports configuration (#12
Browse files Browse the repository at this point in the history
)

* feat(package): add types to add TS to Node.js exports configuration

* refactor(workaround): move web to the root
  • Loading branch information
fraxken authored Jun 6, 2022
1 parent 397c3e9 commit ed83a81
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 52 deletions.
111 changes: 59 additions & 52 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,52 +1,59 @@
{
"name": "@nodesecure/flags",
"version": "2.2.0",
"description": "NodeSecure security flags",
"scripts": {
"test": "cross-env esm-tape-runner 'test/**/*.js' | tap-monkey",
"coverage": "c8 -r html npm test",
"lint": "cross-env eslint index.js",
"generateFlags": "node scripts/generateFlags.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/NodeSecure/flags.git"
},
"keywords": [
"nodesecure",
"flags",
"documentation"
],
"exports": {
".": "./index.js",
"./web": "./src/web.js",
"./package.json": "./package.json"
},
"modes": {
"web": "src/web.js"
},
"author": "GENTILHOMME Thomas <[email protected]>",
"files": [
"index.d.ts",
"index.js",
"src",
"FLAGS.md"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/NodeSecure/flags/issues"
},
"homepage": "https://github.com/NodeSecure/flags#readme",
"devDependencies": {
"@nodesecure/eslint-config": "^1.4.0",
"@slimio/is": "^1.5.1",
"@small-tech/esm-tape-runner": "^2.0.0",
"@small-tech/tap-monkey": "^1.4.0",
"c8": "^7.11.3",
"cross-env": "^7.0.3",
"eslint": "^8.16.0",
"tape": "^5.5.3",
"turndown": "^7.1.1"
},
"type": "module"
}
{
"name": "@nodesecure/flags",
"version": "2.2.0",
"description": "NodeSecure security flags",
"scripts": {
"test": "cross-env esm-tape-runner 'test/**/*.js' | tap-monkey",
"coverage": "c8 -r html npm test",
"lint": "cross-env eslint index.js",
"generateFlags": "node scripts/generateFlags.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/NodeSecure/flags.git"
},
"keywords": [
"nodesecure",
"flags",
"documentation"
],
"exports": {
".": {
"import": "./index.js"
},
"./web": {
"types": "./web.d.ts",
"import": "./src/web.js"
},
"./package.json": "./package.json"
},
"types": "./index.d.ts",
"modes": {
"web": "src/web.js"
},
"author": "GENTILHOMME Thomas <[email protected]>",
"files": [
"index.d.ts",
"index.js",
"web.d.ts",
"src",
"FLAGS.md"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/NodeSecure/flags/issues"
},
"homepage": "https://github.com/NodeSecure/flags#readme",
"devDependencies": {
"@nodesecure/eslint-config": "^1.4.0",
"@slimio/is": "^1.5.1",
"@small-tech/esm-tape-runner": "^2.0.0",
"@small-tech/tap-monkey": "^1.4.0",
"c8": "^7.11.3",
"cross-env": "^7.0.3",
"eslint": "^8.16.0",
"tape": "^5.5.3",
"turndown": "^7.1.1"
},
"type": "module"
}
File renamed without changes.

0 comments on commit ed83a81

Please sign in to comment.