Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
fix(workflow): invalid reference to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
moranje committed Oct 4, 2018
1 parent c60141f commit a8a9ccf
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 32 deletions.
118 changes: 95 additions & 23 deletions package-lock.json

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

13 changes: 8 additions & 5 deletions package.json
Expand Up @@ -119,11 +119,10 @@
]
},
"dependencies": {
"@types/lru-cache": "4.1.1",
"ajv": "6.5.3",
"app-root-path": "2.1.0",
"babel-polyfill": "6.26.0",
"date-fns": "2.0.0-alpha.18",
"fast-plist": "0.1.2",
"fuzzaldrin": "2.1.0",
"got": "9.2.2",
"jsonfile": "5.0.0",
Expand All @@ -133,6 +132,7 @@
"mkdirp": "0.5.1",
"moo": "github:no-context/moo#master",
"nearley": "2.15.1",
"node-notifier": "5.2.1",
"os-name": "2.0.1",
"stampit": "4.2.0"
},
Expand All @@ -143,17 +143,18 @@
"@semantic-release/changelog": "3.0.0",
"@semantic-release/exec": "3.1.3",
"@semantic-release/git": "7.0.4",
"@types/app-root-path": "1.2.4",
"@types/fuzzaldrin": "2.1.0",
"@types/got": "8.3.3",
"@types/inquirer": "0.0.43",
"@types/jest": "23.3.2",
"@types/jsonfile": "4.0.1",
"@types/lodash": "4.14.116",
"@types/lru-cache": "4.1.1",
"@types/md5": "2.1.33",
"@types/mkdirp": "0.5.1",
"@types/moo": "0.4.1",
"@types/nearley": "2.11.0",
"@types/node-notifier": "0.0.28",
"@types/node": "*",
"@types/os-name": "2.0.0",
"@types/shelljs": "0.8.0",
Expand All @@ -164,6 +165,8 @@
"coveralls": "3.0.2",
"cross-env": "5.2.0",
"cz-conventional-changelog": "^2.0.0",
"eslint-config-prettier": "3.1.0",
"eslint-plugin-prettier": "3.0.0",
"husky": "^0.14.0",
"inquirer": "6.2.0",
"jest": "^23.6.0",
Expand All @@ -172,21 +175,21 @@
"prettier": "^1.14.3",
"prompt": "^1.0.0",
"replace-in-file": "3.4.2",
"rollup": "^0.66.2",
"rollup-plugin-commonjs": "9.1.8",
"rollup-plugin-json": "3.1.0",
"rollup-plugin-node-globals": "1.4.0",
"rollup-plugin-node-resolve": "3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup-plugin-typescript2": "^0.17.0",
"rollup": "^0.66.2",
"semantic-release": "^15.9.16",
"shelljs": "0.8.2",
"travis-deploy-once": "^5.0.9",
"ts-jest": "*",
"ts-node": "7.0.1",
"tslint": "^5.11.0",
"tslint-config-prettier": "1.15.0",
"tslint-config-standard": "7.1.0",
"tslint": "^5.11.0",
"typedoc": "^0.12.0",
"typescript": "3.0.3"
}
Expand Down
1 change: 1 addition & 0 deletions src/typings.d.ts
@@ -0,0 +1 @@
declare module 'fast-plist'
12 changes: 8 additions & 4 deletions src/workflow/workflow.ts
@@ -1,8 +1,13 @@
import plist from 'fast-plist'
import { readFileSync } from 'fs'
import md5 from 'md5'
import osName from 'os-name'
import compose from 'stampit'

const pkg = require('../../package.json')
const infoPlist: any = plist.parse(readFileSync(`${process.cwd()}/info.plist`, 'utf8'))
const alfredPlist: any = plist.parse(
readFileSync('/Applications/Alfred 3.app/Contents/Info.plist', 'utf8')
)

export interface Writable {
write: (...params: any[]) => void
Expand Down Expand Up @@ -66,7 +71,8 @@ export const Writable = compose({
`os: ${osName()}`,
`query: ${err.query}`,
`node.js: ${process.version}`,
`workflow: ${pkg.version}`,
`alfred: ${alfredPlist.CFBundleShortVersionString}`,
`workflow: ${infoPlist.version}`,
`Stack: ${err.stack}`
].join('\n')
}
Expand Down Expand Up @@ -176,5 +182,3 @@ export const Query = compose({

methods: {}
})

export const Notification = compose(Writable)

0 comments on commit a8a9ccf

Please sign in to comment.