Skip to content

Commit

Permalink
Update header-gen package.json to fix import issue (#8)
Browse files Browse the repository at this point in the history
* Update header-gen package.json to fix import issue

* Move jest config to json file to handle es module
  • Loading branch information
microbit-robert authored Sep 5, 2024
1 parent 0437fd8 commit c5e7fd9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 0 additions & 5 deletions header-gen/jest.config.js

This file was deleted.

5 changes: 5 additions & 0 deletions header-gen/jest.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"preset": "ts-jest",
"testEnvironment": "node",
"testMatch": ["**/?(*.)+(spec|test).[tj]s?(x)"]
}
6 changes: 6 additions & 0 deletions header-gen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@
"description": "A simple TS script to generate a header blob for the ML runner",
"author": "Micro:bit Educational Foundation <[email protected]>",
"license": "MIT",
"type": "module",
"module": "./built/main.js",
"typings": "./built/main.d.ts",
"files": [
"./built/*.js",
"./built/*.d.ts"
],
"exports": {
".": {
"import": "./built/main.js"
}
},
"scripts": {
"start": "ts-node --project tsconfig.cli.json src/cli.ts",
"test": "jest",
Expand Down

0 comments on commit c5e7fd9

Please sign in to comment.