Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
lishaduck committed Dec 30, 2024
1 parent fcb4f70 commit edd46d1
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion apps/docs-website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"serve": "docusaurus serve --dir=./dist",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids",
"typecheck": "tsc --noEmit",
"typecheck": "tsc",
"lint": "eslint --max-warnings=0 --flag unstable_ts_config",
"typesync": "typesync --dry=fail",
"clean": "pnpm clear && rm -rf .turbo dist node_modules/.cache"
Expand Down
2 changes: 1 addition & 1 deletion apps/sheriff-webservices/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"start": "tsx watch ./src/index.ts",
"build": "tsc",
"typecheck": "tsc --noEmit",
"typecheck": "tsc",
"lint": "eslint --max-warnings=0 --flag unstable_ts_config",
"typesync": "typesync --dry=fail",
"serve": "node ./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-sheriff/eslint.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { sheriff, type SheriffSettings } from 'eslint-config-sheriff';
import { defineFlatConfig } from 'eslint-define-config';
import { sheriff, type SheriffSettings } from './src';

const sheriffOptions: SheriffSettings = {
react: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-sheriff/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"are-the-types-wrong": "attw --pack --profile=esm-only",
"build": "tsup && pnpm re-bundle-types",
"build-watch": "tsup && pnpm re-bundle-types",
"typecheck": "tsc --noEmit",
"typecheck": "tsc",
"lint": "eslint src --max-warnings=0 --flag unstable_ts_config",
"publint": "publint",
"typesync": "typesync --dry=fail"
Expand Down
11 changes: 5 additions & 6 deletions packages/eslint-config-sheriff/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* eslint-disable import/no-default-export */
/* eslint-disable unicorn/prefer-export-from */

import {
allJsExtensions,
Expand All @@ -9,7 +8,6 @@ import {
supportedFileTypes,
testsFilePatterns,
} from '@sherifforg/constants';
import { getExportableConfig } from './getExportableConfig';
import { getIndexedBaseNoRestrictedSyntaxRules } from './utils/getIndexedBaseNoRestrictedSyntaxRules';

//#region - these '@sherifforg/constants' variables needs to be re-stored like this, otherwise they will not be bundled. They need to be bundled because we are not publishing the 'sheriff-constants' package, but we are using it as a dependency in this package.
Expand All @@ -22,19 +20,20 @@ const exportableTestsFilePatterns = testsFilePatterns;

const indexedBaseNoRestrictedSyntaxRules =
getIndexedBaseNoRestrictedSyntaxRules();
//#endregion

export {
exportableAllJsExtensions as allJsExtensions,
exportableAllJsxExtensions as allJsxExtensions,
indexedBaseNoRestrictedSyntaxRules as baseNoRestrictedSyntaxRules,
exportableIgnores as ignores,
getExportableConfig as sheriff,
exportableSheriffStartingOptions as sheriffStartingOptions,
exportableSupportedFileTypes as supportedFileTypes,
exportableTestsFilePatterns as testsFilePatterns,
};
//#endregion

export {
getExportableConfig as default,
getExportableConfig as sheriff,
} from './getExportableConfig';
export type * from '@sherifforg/types';

export default getExportableConfig;
2 changes: 1 addition & 1 deletion packages/sheriff-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"clean": "rm -rf .turbo dist node_modules/.cache",
"build": "tsup",
"typecheck": "tsc --noEmit",
"typecheck": "tsc",
"lint": "eslint ./src --max-warnings=0",
"publint": "publint",
"typesync": "typesync --dry=fail"
Expand Down
2 changes: 1 addition & 1 deletion packages/sheriff-create-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"clean": "rm -rf .turbo dist node_modules/.cache",
"build": "tsup",
"build-watch": "tsup",
"typecheck": "tsc --noEmit",
"typecheck": "tsc",
"lint": "eslint ./src --max-warnings=0 --flag unstable_ts_config",
"publint": "publint",
"typesync": "typesync --dry=fail"
Expand Down
2 changes: 1 addition & 1 deletion packages/sheriff-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"scripts": {
"clean": "rm -rf .turbo dist node_modules/.cache",
"typecheck": "tsc --noEmit"
"typecheck": "tsc"
},
"devDependencies": {
"@types/node": "^22.9.0",
Expand Down
4 changes: 3 additions & 1 deletion packages/tsconfig/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"${configDir}/node_modules"
],
"compilerOptions": {
"noEmit": true,
"composite": false,
"target": "ESNext",
"module": "Preserve",
Expand All @@ -23,6 +24,7 @@
"skipLibCheck": true,
"verbatimModuleSyntax": true,
"tsBuildInfoFile": "${configDir}/node_modules/.cache/tsbuildinfo.json",
"noUncheckedSideEffectImports": true
"noUncheckedSideEffectImports": true,
"allowImportingTsExtensions": true
}
}

0 comments on commit edd46d1

Please sign in to comment.