Skip to content

Commit

Permalink
Fix typo in web5 launch.json and workspace test all
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Hinek <[email protected]>
  • Loading branch information
frankhinek committed Aug 4, 2023
1 parent 4073ddb commit b15d9bf
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 9 deletions.
1 change: 0 additions & 1 deletion packages/common/.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"label": "npm run build",
"type": "npm",
"script": "build",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
Expand Down
4 changes: 2 additions & 2 deletions packages/common/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"module": "ESNext", // Required for enabling JavaScript import assertion support
"declaration": true,
"declarationMap": true,
"outDir": "dist/esm",
"declarationDir": "dist/types",
"outDir": "dist/esm",
"sourceMap": true,
// `NodeNext` will throw compilation errors if relative import paths are missing file extension
// reference: https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/#ecmascript-module-support-in-node-js
"moduleResolution": "NodeNext",
"esModuleInterop": true
},
"include": [
"./src",
"src",
]
}
4 changes: 3 additions & 1 deletion packages/web5-user-agent/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"runtimeExecutable": "${workspaceFolder:root}/node_modules/.bin/mocha",
"console": "internalConsole",
"preLaunchTask": "build tests",
"skipFiles": ["<node_internals>/**"]
"skipFiles": [
"<node_internals>/**"
]
}
]
}
6 changes: 4 additions & 2 deletions packages/web5/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@
"name": "test:node",
"runtimeExecutable": "${workspaceFolder:root}/node_modules/.bin/mocha",
"console": "internalConsole",
"preLaunchTask": "tsc: test",
"skipFiles": ["<node_internals>/**"]
"preLaunchTask": "build tests",
"skipFiles": [
"<node_internals>/**"
]
}
]
}
2 changes: 1 addition & 1 deletion packages/web5/tsconfig.cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"ES5",
],
"target": "ES5",
"outDir": "dist/cjs",
"module": "CommonJS",
"outDir": "dist/cjs",
"declaration": false,
"declarationMap": false,
"declarationDir": null
Expand Down
20 changes: 18 additions & 2 deletions web5-js.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@
"name": "Test All - Node",
"runtimeExecutable": "${workspaceFolder:root}/node_modules/.bin/mocha",
"runtimeArgs": [
"packages/**/__tests__/**/*.spec.js"
"${workspaceFolder:root}/packages/**/tests/compiled/**/*.spec.js"
],
"preLaunchTask": "Build All",
"preLaunchTask": "build tests",
"console": "internalConsole",
"internalConsoleOptions": "openOnSessionStart",
}
Expand All @@ -83,6 +83,22 @@
"isDefault": true
}
},
{
"label": "build tests",
"type": "shell",
"command": "npm",
"args": [
"run",
"build:tests:node",
"--ws"
],
"problemMatcher": [
"$tsc"
],
"options": {
"cwd": "${workspaceFolder:root}"
}
},
]
}
}

0 comments on commit b15d9bf

Please sign in to comment.