Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add main entry point and type definitions #92

Merged
merged 4 commits into from
May 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
bin/
lib/
tmp/
types/
node_modules/**
!/test/_files/node_modules/ignore.*

Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.git/
coverage/
lib/
types/
node_modules
package.json
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Added

- Test with Node 12 (Erbium) ([#91](https://github.com/marp-team/marp-cli/pull/91))
- Add main entry point and type definitions ([#92](https://github.com/marp-team/marp-cli/pull/92))

### Changed

Expand Down
37 changes: 26 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
"name": "@marp-team/marp-cli",
"version": "0.9.0",
"description": "A CLI interface for Marp and Marpit based converters",
"repository": "https://github.com/marp-team/marp-cli",
"engines": {
"node": ">=8.9.0"
},
"license": "MIT",
"author": {
"name": "Marp team",
"url": "https://github.com/marp-team"
Expand All @@ -16,17 +13,31 @@
"url": "https://github.com/yhatt"
}
],
"license": "MIT",
"publishConfig": {
"access": "public"
"keywords": [
"marp",
"markdown",
"cli",
"slide",
"deck",
"presentation"
],
"repository": {
"type": "git",
"url": "https://github.com/marp-team/marp-cli"
},
"bin": {
"marp": "./marp-cli.js"
"engines": {
"node": ">=8.9.0"
},
"main": "lib/marp-cli.js",
"types": "types/src/marp-cli.d.ts",
"files": [
"marp-cli.js",
"lib/"
"lib/",
"types/"
],
"bin": {
"marp": "./marp-cli.js"
},
"pkg": {
"scripts": "lib/**/*.js"
},
Expand All @@ -41,13 +52,14 @@
"format:write": "yarn -s format --write",
"lint:ts": "tslint \"{src,test}/**/*.ts\"",
"lint:css": "stylelint \"src/**/*.{css,scss}\"",
"prepack": "npm-run-all --parallel check:* lint:* test:coverage --sequential build",
"prepack": "npm-run-all --parallel check:* lint:* test:coverage --parallel build types",
"preversion": "run-p check:* format:check lint:* test:coverage",
"standalone": "rimraf bin && pkg --out-path ./bin .",
"standalone:pack": "node ./scripts/pack.js",
"standalone:pack:upload": "node ./scripts/upload.js",
"test": "jest",
"test:coverage": "jest --coverage",
"types": "rimraf types && tsc --declaration --emitDeclarationOnly --outDir types",
"version": "curl https://raw.githubusercontent.com/marp-team/marp/master/version.js | node && git add -A CHANGELOG.md",
"watch": "rollup -w -c"
},
Expand Down Expand Up @@ -129,5 +141,8 @@
"tmp": "^0.1.0",
"ws": "^7.0.0",
"yargs": "^13.2.2"
},
"publishConfig": {
"access": "public"
}
}