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

Unable to build ts-jest locally #1002

Closed
jdhuntington opened this issue Feb 27, 2019 · 3 comments
Closed

Unable to build ts-jest locally #1002

jdhuntington opened this issue Feb 27, 2019 · 3 comments

Comments

@jdhuntington
Copy link
Contributor

Issue :

Unable to build ts-jest locally from fresh clone of repo.

Expected behavior :

Expect to be able to run the following commands without error:

git clone https://github.com/kulshekhar/ts-jest.git
cd ts-jest
npm i
npm run test

Actual behavior


$ clone
$ npm i

> ts-jest@24.0.0 prepare /Users/jdh/projects/ts-jest
> npm run build


> ts-jest@24.0.0 prebuild /Users/jdh/projects/ts-jest
> node scripts/clean-dist.js


> ts-jest@24.0.0 build /Users/jdh/projects/ts-jest
> tsc -p tsconfig.build.json


> ts-jest@24.0.0 postbuild /Users/jdh/projects/ts-jest
> node scripts/post-build.js

/Users/jdh/projects/ts-jest/node_modules/glob-gitignore/node_modules/ignore/index.js:354
  throw new Ctor(message)
  ^

RangeError: path should be a `path.relative()`d string, but got "/Users/jdh/projects/ts-jest"
    at throwError (/Users/jdh/projects/ts-jest/node_modules/glob-gitignore/node_modules/ignore/index.js:354:9)
    at checkPath (/Users/jdh/projects/ts-jest/node_modules/glob-gitignore/node_modules/ignore/index.js:375:12)
    at Ignore._test (/Users/jdh/projects/ts-jest/node_modules/glob-gitignore/node_modules/ignore/index.js:483:5)
    at Ignore.ignores (/Users/jdh/projects/ts-jest/node_modules/glob-gitignore/node_modules/ignore/index.js:518:17)
    at path (/Users/jdh/projects/ts-jest/node_modules/glob-gitignore/node_modules/ignore/index.js:522:26)
    at Array.filter (<anonymous>)
    at join (/Users/jdh/projects/ts-jest/node_modules/glob-gitignore/src/util.js:102:22)
    at exports.sync (/Users/jdh/projects/ts-jest/node_modules/glob-gitignore/src/sync.js:49:10)
    at computePackageDigest (/Users/jdh/projects/ts-jest/scripts/lib/bundle.js:27:17)
    at Object.<anonymous> (/Users/jdh/projects/ts-jest/scripts/post-build.js:3:1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ts-jest@24.0.0 postbuild: `node scripts/post-build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ts-jest@24.0.0 postbuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/jdh/.npm/_logs/2019-02-27T19_07_21_775Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ts-jest@24.0.0 prepare: `npm run build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ts-jest@24.0.0 prepare script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/jdh/.npm/_logs/2019-02-27T19_07_21_817Z-debug.log

Other details

$ npm --version
6.4.1
$ node --version
v10.15.0
$ uname -a
Darwin ledaig.local 18.2.0 Darwin Kernel Version 18.2.0: Thu Dec 20 20:46:53 PST 2018; root:xnu-4903.241.1~1/RELEASE_X86_64 x86_64
@GeeWee
Copy link
Collaborator

GeeWee commented Feb 27, 2019

Yeah our Travis fails with the same problem and I have no idea how it got merged into master. If you can fix the issue with a PR I'd be eternally grateful

jdhuntington pushed a commit to jdhuntington/ts-jest that referenced this issue Feb 27, 2019
globIgnore now requires the 'absolute' option to be specified.
@jdhuntington
Copy link
Contributor Author

Looks like a dependency bump of globIgnore recently modified the behavior. PR sent!

GeeWee pushed a commit that referenced this issue Feb 28, 2019
globIgnore now requires the 'absolute' option to be specified.
@GeeWee
Copy link
Collaborator

GeeWee commented Feb 28, 2019

Magnificent. Should be closed by #1003

@GeeWee GeeWee closed this as completed Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants