Skip to content

Commit 6069d24

Browse files
anion155danielpza
authored andcommitted
test: use release build for tests
1 parent fb2a50a commit 6069d24

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"build": "tsc",
3838
"prepare": "npm run build",
3939
"release": "standard-version",
40-
"test": "ttsc -p tests/tsconfig.json && node tests/out/core/index.js"
40+
"test": "npm run build && ttsc -p tests/tsconfig.json && node tests/out/core/index.js"
4141
},
4242
"dependencies": {
4343
"slash": "^3.0.0"

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { dirname, relative, resolve } from "path";
2-
import * as ts from "typescript";
3-
import slash = require("slash");
2+
import ts from "typescript";
3+
import slash from "slash";
44

55
const transformer = <T extends ts.Node>(_: ts.Program) => {
66
return (context: ts.TransformationContext) => (rootNode: T) => {

tests/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313

1414
"esModuleInterop": true,
1515

16-
"plugins": [{ "transform": "../src/index.ts" }]
16+
"plugins": [{ "transform": "../" }]
1717
}
1818
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212

1313
"esModuleInterop": true
1414
},
15-
"exclude": ["tests"]
15+
"include": ["src/**/*"]
1616
}

0 commit comments

Comments
 (0)