Skip to content

Commit 31e4b6f

Browse files
committed
Test running rescript in finished package
1 parent eab97fc commit 31e4b6f

File tree

4 files changed

+19
-5
lines changed

4 files changed

+19
-5
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,5 +179,6 @@ jobs:
179179
working-directory: packages/test
180180

181181
- name: Test installation
182-
run: npm test
182+
run: npx rescript -h && npx rescript build && cat src/Test.bs.js
183+
shell: bash
183184
working-directory: packages/test

packages/test/bsconfig.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "rescript-test",
3+
"sources": [
4+
{
5+
"dir": "src",
6+
"subdirs": true
7+
}
8+
],
9+
"package-specs": [
10+
{
11+
"module": "es6",
12+
"in-source": true
13+
}
14+
],
15+
"suffix": ".bs.js"
16+
}

packages/test/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
22
"name": "rescript-test",
3-
"version": "0.0.0",
4-
"scripts": {
5-
"test": "bsc Test.res"
6-
}
3+
"version": "0.0.0"
74
}
File renamed without changes.

0 commit comments

Comments
 (0)