@@ -2,8 +2,8 @@ export PATH := $(shell npm bin):$(PATH)
2
2
3
3
build :
4
4
rm -rf dist || true
5
- $(shell npm bin) /tsc -p tsconfig.json
6
- $(shell npm bin) /tsc -p test/tsconfig.json
5
+ $(shell npm root) /.bin /tsc -p tsconfig.json
6
+ $(shell npm root) /.bin /tsc -p test/tsconfig.json
7
7
chmod +x dist/bin.js
8
8
node dist/utils/packStdLib.js
9
9
@@ -20,10 +20,10 @@ test: | build just-test
20
20
21
21
xml-test :
22
22
MOCHA_FILE=./test/TEST-RESULTS.xml \
23
- $(shell npm bin) /mocha --reporter mocha-junit-reporter
23
+ $(shell npm root) /.bin /mocha --reporter mocha-junit-reporter
24
24
25
25
coverage :
26
- $(shell npm bin) /nyc ./node_modules/mocha/bin/_mocha
26
+ $(shell npm root) /.bin /nyc ./node_modules/mocha/bin/_mocha
27
27
28
28
ci-test : | lint test e2e
29
29
@@ -33,19 +33,19 @@ inspect: build
33
33
node --inspect ./node_modules/mocha/bin/_mocha --require source-map-support/register test/* .spec.js
34
34
35
35
watch : build
36
- $(shell npm bin) / tsc -p tsconfig.json --watch & $(shell npm bin) /tsc -p test/tsconfig.json --watch
36
+ $(shell npm root) /.bin/ tsc -p tsconfig.json --watch & $(shell npm root) /.bin /tsc -p test/tsconfig.json --watch
37
37
38
38
lint :
39
39
echo " true"
40
- # $(shell npm bin) /tslint src/**/*.ts --project tsconfig.json
40
+ # $(shell npm root)/.bin /tslint src/**/*.ts --project tsconfig.json
41
41
42
42
e2e :
43
43
$(MAKE ) md-tests
44
44
cd test/fixtures/cli/smoke && ../../../../dist/bin.js main.lys --test --debug --wast
45
45
cd test/fixtures/cli/custom-lib && ../../../../dist/bin.js main.lys --test --debug --wast --lib lib.js
46
46
47
47
md-tests : build
48
- $(shell npm bin) /ts-node test/RunModulesFolder.ts
48
+ $(shell npm root) /.bin /ts-node test/RunModulesFolder.ts
49
49
50
50
snapshot : export UPDATE_AST=true
51
51
snapshot : just-test
0 commit comments