Skip to content

Commit

Permalink
fix: add module type to packages + fix running the packages tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Aug 23, 2024
1 parent f2d212e commit ca23aba
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 6 deletions.
1 change: 1 addition & 0 deletions biome.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"dev/cpp_vcpkg_project/**/*",
"**/.venv/",
"**/.*cache/",
"coverage/",
"**/coverage/"
],
"ignoreUnknown": true
Expand Down
7 changes: 4 additions & 3 deletions jest.config.ts → jest.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Config } from "jest"

const jestConfig: Config = {
/**
* @type {import('jest').Config}
*/
const jestConfig = {
testMatch: ["**/*.test.ts"],
testEnvironment: "node",
extensionsToTreatAsEsm: [".ts", ".tsx", ".jsx"],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"test.lint.root.eslint": "eslint ./{src,dev}/**/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/",
"test.lint.biome": "biome check",
"test.lint.dprint": "dprint check",
"test": "jest --runInBand --forceExit --coverage",
"test": "turbo test && jest --runInBand --forceExit --coverage",
"build.docker-ci": "node ./dev/docker/ci/docker-ci.mjs"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/ci-log/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"author": "Amin Yahyaabadi",
"main": "./dist/index.js",
"source": "./src/index.ts",
"type": "module",
"scripts": {
"build": "tsc --pretty",
"dev": "tsc --watch --pretty",
Expand Down
1 change: 1 addition & 0 deletions packages/envosman/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"author": "Amin Yahyaabadi",
"main": "./dist/index.js",
"source": "./src/index.ts",
"type": "module",
"scripts": {
"build": "tsc --pretty",
"dev": "tsc --watch --pretty",
Expand Down
1 change: 1 addition & 0 deletions packages/exec-powershell/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"author": "Amin Yahyaabadi",
"main": "./dist/index.js",
"source": "./src/index.ts",
"type": "module",
"scripts": {
"build": "tsc --pretty",
"dev": "tsc --watch --pretty",
Expand Down
1 change: 1 addition & 0 deletions packages/setup-apt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"author": "Amin Yahyaabadi",
"main": "./dist/index.js",
"source": "./src/index.ts",
"type": "module",
"scripts": {
"build": "tsc --pretty",
"dev": "tsc --watch --pretty",
Expand Down
2 changes: 2 additions & 0 deletions packages/setup-brew/jest.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import jestConfig from "../../jest.config.mjs"
export default jestConfig
4 changes: 3 additions & 1 deletion packages/setup-brew/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
"author": "Amin Yahyaabadi",
"main": "./dist/index.js",
"source": "./src/index.ts",
"type": "module",
"scripts": {
"build": "tsc --pretty",
"dev": "tsc --watch --pretty",
"lint.tsc": "tsc --noEmit --pretty",
"lint.eslint": "eslint **/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/ --fix",
"prepublishOnly": "pnpm run build"
"prepublishOnly": "pnpm run build",
"test": "jest --coverage"
},
"dependencies": {
"@types/node": "^12",
Expand Down
1 change: 1 addition & 0 deletions packages/untildify-user/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"author": "Amin Yahyaabadi",
"main": "./dist/index.js",
"source": "./src/index.ts",
"type": "module",
"scripts": {
"build": "tsc --pretty",
"dev": "tsc --watch --pretty",
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"include": [
"./src",
"./dev/",
"./*.ts"
"./*.ts",
"jest.config.mjs"
]
}
3 changes: 3 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
},
"lint": {
"dependsOn": ["lint.tsc", "lint.eslint"]
},
"test": {
"dependsOn": ["build", "^test"]
}
},
"ui": "stream"
Expand Down

0 comments on commit ca23aba

Please sign in to comment.