Skip to content

Commit

Permalink
Revert "chore: Update planx-core to ESM module (#601)"
Browse files Browse the repository at this point in the history
This reverts commit f8cdf5b.
  • Loading branch information
jessicamcinchak authored Jan 8, 2025
1 parent f8cdf5b commit 618e462
Show file tree
Hide file tree
Showing 103 changed files with 596 additions and 1,807 deletions.
16 changes: 16 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
export default {
testEnvironment: "node",
preset: "ts-jest",
transform: {
"^.+\\.js$": [
"esbuild-jest",
{
sourcemap: true,
},
],
},
testPathIgnorePatterns: ["dist/*"],
collectCoverage: true,
coverageReporters: ["html", "lcov", "text-summary"],
coverageDirectory: "./coverage",
};
25 changes: 12 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"dist",
"types"
],
"type": "module",
"module": "./dist/index.js",
"main": "./dist/index.js",
"lint-staged": {
Expand All @@ -33,12 +32,12 @@
"types": "./dist/index.d.ts",
"scripts": {
"build": "rimraf ./types ./dist && tsc --project ./tsconfig.types.json && tsc --project ./tsconfig.build.json && pnpm copy-json-schema",
"examples": "rimraf ./examples && tsx ./src/templates/generateExamples.ts",
"examples": "rimraf ./examples && ts-node ./src/templates/generateExamples.ts",
"lint": "eslint 'src/**/*.{js,ts}' && prettier -c src/**/*",
"lint:fix": "eslint --fix 'src/**/*.{js,ts}' && prettier -w src/**/*",
"test": "vitest run",
"test:coverage": "vitest run --coverage && open coverage/lcov-report/index.html",
"test:watch": "vitest --ui --coverage",
"test": "jest",
"test:coverage": "jest; open ./coverage/lcov-report/index.html",
"test:watch": "jest --watch",
"check": "tsc --project ./tsconfig.check.json && pnpm lint",
"postinstall": "pnpm i rimraf && pnpm build",
"prepare": "husky install",
Expand All @@ -61,8 +60,8 @@
"graphql": "^16.10.0",
"graphql-request": "^6.1.0",
"json-schema-to-typescript": "^15.0.3",
"lodash": "^4.17.21",
"marked": "^15.0.5",
"lodash-es": "^4.17.21",
"prettier": "^3.4.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand All @@ -72,25 +71,25 @@
},
"devDependencies": {
"@types/geojson": "^7946.0.15",
"@types/lodash-es": "^4.17.12",
"@types/jest": "^29.5.14",
"@types/lodash": "^4.17.14",
"@types/node": "^22.10.5",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/uuid": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^6.21.0",
"@vitest/coverage-istanbul": "2.1.8",
"esbuild-jest": "^0.5.0",
"esbuild": "^0.24.2",
"eslint-plugin-simple-import-sort": "^12.1.1",
"esbuild-jest": "^0.5.0",
"eslint": "^8.57.1",
"eslint-plugin-simple-import-sort": "^12.1.1",
"husky": "^9.1.7",
"jest": "^29.7.0",
"lint-staged": "^15.3.0",
"rimraf": "^5.0.10",
"tsx": "^4.19.2",
"typescript": "^5.5.4",
"vitest": "^2.1.8"
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"typescript": "^5.5.4"
},
"packageManager": "[email protected]",
"pnpm": {
Expand Down
Loading

0 comments on commit 618e462

Please sign in to comment.