Skip to content

Commit 0660ca7

Browse files
committed
fix: add module type to packages + fix running the packages tests
1 parent f2d212e commit 0660ca7

File tree

16 files changed

+27
-12
lines changed

16 files changed

+27
-12
lines changed

biome.jsonc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"dev/cpp_vcpkg_project/**/*",
99
"**/.venv/",
1010
"**/.*cache/",
11+
"coverage/",
1112
"**/coverage/"
1213
],
1314
"ignoreUnknown": true

dist/actions/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/legacy/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/modern/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jest.config.ts renamed to jest.config.mjs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import type { Config } from "jest"
2-
3-
const jestConfig: Config = {
1+
/**
2+
* @type {import('jest').Config}
3+
*/
4+
const jestConfig = {
45
testMatch: ["**/*.test.ts"],
56
testEnvironment: "node",
67
extensionsToTreatAsEsm: [".ts", ".tsx", ".jsx"],

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"build.babel": "babel ./dist --out-dir dist --plugins @upleveled/babel-plugin-remove-node-prefix --plugins @babel/plugin-transform-private-methods --compact --no-babelrc --source-maps true",
3333
"build.modern": "shx cp -r ./dist/actions/* ./dist/modern",
3434
"bump": "ncu -u -x numerous,execa,prettier,@types/node,eslint,@types/eslint && pnpm update && pnpx typesync && pnpm run clean",
35-
"clean": "shx rm -rf ./dist ./exe ./.parcel-cache && shx mkdir -p ./dist/legacy ./dist/actions ./dist/modern ",
35+
"clean": "shx rm -rf ./dist ./packages/*/dist ./exe ./.parcel-cache && shx mkdir -p ./dist/legacy ./dist/actions ./dist/modern ",
3636
"copy.matchers": "run-p copy.matchers.legacy copy.matchers.actions",
3737
"copy.matchers.legacy": "shx cp ./src/gcc/gcc_matcher.json ./dist/legacy/ && shx cp ./src/msvc/msvc_matcher.json ./dist/legacy/ && shx cp ./src/python/python_matcher.json ./dist/legacy/ && shx cp ./src/llvm/llvm_matcher.json ./dist/legacy/",
3838
"copy.matchers.actions": "shx cp ./src/gcc/gcc_matcher.json ./dist/actions/ && shx cp ./src/msvc/msvc_matcher.json ./dist/actions/ && shx cp ./src/python/python_matcher.json ./dist/actions/ && shx cp ./src/llvm/llvm_matcher.json ./dist/actions/",
@@ -54,7 +54,7 @@
5454
"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/",
5555
"test.lint.biome": "biome check",
5656
"test.lint.dprint": "dprint check",
57-
"test": "jest --runInBand --forceExit --coverage",
57+
"test": "turbo test && jest --runInBand --forceExit --coverage",
5858
"build.docker-ci": "node ./dev/docker/ci/docker-ci.mjs"
5959
},
6060
"devDependencies": {

packages/ci-log/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"author": "Amin Yahyaabadi",
99
"main": "./dist/index.js",
1010
"source": "./src/index.ts",
11+
"type": "module",
1112
"scripts": {
1213
"build": "tsc --pretty",
1314
"dev": "tsc --watch --pretty",

packages/envosman/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"author": "Amin Yahyaabadi",
99
"main": "./dist/index.js",
1010
"source": "./src/index.ts",
11+
"type": "module",
1112
"scripts": {
1213
"build": "tsc --pretty",
1314
"dev": "tsc --watch --pretty",

packages/envosman/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export { addEnv } from "./add-env.js"
2-
export { addPath } from "./add-path.js"
1+
export { addEnv, AddEnvOptions } from "./add-env.js"
2+
export { addPath, AddPathOptions } from "./add-path.js"
33
export { finalizeRC, sourceRCInRc as sourceRC } from "./rc-file.js"

packages/exec-powershell/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"author": "Amin Yahyaabadi",
99
"main": "./dist/index.js",
1010
"source": "./src/index.ts",
11+
"type": "module",
1112
"scripts": {
1213
"build": "tsc --pretty",
1314
"dev": "tsc --watch --pretty",

0 commit comments

Comments
 (0)