diff --git a/change/@fluentui-react-conformance-make-styles-b408f2b8-a6f0-4557-a2f4-d9bf2bb756bc.json b/change/@fluentui-react-conformance-make-styles-b408f2b8-a6f0-4557-a2f4-d9bf2bb756bc.json new file mode 100644 index 0000000000000..07b319c234af3 --- /dev/null +++ b/change/@fluentui-react-conformance-make-styles-b408f2b8-a6f0-4557-a2f4-d9bf2bb756bc.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "update tooling configs", + "packageName": "@fluentui/react-conformance-make-styles", + "email": "olfedias@microsoft.com", + "dependentChangeType": "none" +} diff --git a/packages/react-conformance-make-styles/.npmignore b/packages/react-conformance-make-styles/.npmignore index 8f8cf87c9221a..e719afb921bc9 100644 --- a/packages/react-conformance-make-styles/.npmignore +++ b/packages/react-conformance-make-styles/.npmignore @@ -1,4 +1,3 @@ -.cache/ .storybook/ .vscode/ bundle-size/ @@ -26,4 +25,4 @@ __tests__ .editorconfig .eslint* .git* -.prettierignore \ No newline at end of file +.prettierignore diff --git a/packages/react-conformance-make-styles/config/api-extractor.local.json b/packages/react-conformance-make-styles/config/api-extractor.local.json index c2ea401c1c368..7974a129e8a33 100644 --- a/packages/react-conformance-make-styles/config/api-extractor.local.json +++ b/packages/react-conformance-make-styles/config/api-extractor.local.json @@ -1,5 +1,5 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", "extends": "./api-extractor.json", - "mainEntryPointFilePath": "/dist//src/index.d.ts" + "mainEntryPointFilePath": "/dist/packages//src/index.d.ts" } diff --git a/packages/react-conformance-make-styles/jest.config.js b/packages/react-conformance-make-styles/jest.config.js index 220fcc47bd178..212c8f5ae1013 100644 --- a/packages/react-conformance-make-styles/jest.config.js +++ b/packages/react-conformance-make-styles/jest.config.js @@ -8,7 +8,7 @@ module.exports = { preset: '../../jest.preset.js', globals: { 'ts-jest': { - tsConfig: '/tsconfig.json', + tsConfig: '/tsconfig.spec.json', diagnostics: false, }, }, @@ -17,4 +17,5 @@ module.exports = { }, coverageDirectory: './coverage', setupFilesAfterEnv: ['./config/tests.js'], + snapshotSerializers: ['@fluentui/jest-serializer-make-styles'], }; diff --git a/packages/react-conformance-make-styles/package.json b/packages/react-conformance-make-styles/package.json index 1662bc59d3ff3..42835cd6e1046 100644 --- a/packages/react-conformance-make-styles/package.json +++ b/packages/react-conformance-make-styles/package.json @@ -17,14 +17,14 @@ "lint": "just-scripts lint", "test": "jest", "docs": "api-extractor run --config=config/api-extractor.local.json --local", - "build:local": "tsc -p . --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output dist/react-conformance-make-styles/src && yarn docs", - "storybook": "start-storybook", - "start": "yarn storybook" + "build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output ./dist/packages/react-conformance-make-styles/src && yarn docs", + "type-check": "tsc -b tsconfig.json" }, "devDependencies": { "@fluentui/eslint-plugin": "*", "@fluentui/scripts": "^1.0.0", - "@fluentui/react-conformance": "*" + "@fluentui/react-conformance": "*", + "@fluentui/babel-make-styles": "9.0.0-beta.3" }, "dependencies": { "@fluentui/react-make-styles": "9.0.0-beta.3", diff --git a/packages/react-conformance-make-styles/tsconfig.json b/packages/react-conformance-make-styles/tsconfig.json index f5afeab0df1ba..8dff38e64b031 100644 --- a/packages/react-conformance-make-styles/tsconfig.json +++ b/packages/react-conformance-make-styles/tsconfig.json @@ -1,17 +1,22 @@ { "extends": "../../tsconfig.base.json", - "include": ["src"], "compilerOptions": { - "target": "ES2020", - "module": "CommonJS", - "lib": ["ES2020", "dom"], - "outDir": "dist", - "jsx": "react", - "declaration": true, - "experimentalDecorators": true, + "target": "ES2019", + "noEmit": true, + "isolatedModules": true, "importHelpers": true, + "jsx": "react", "noUnusedLocals": true, - "preserveConstEnums": true, - "types": ["jest", "custom-global", "inline-style-expand-shorthand", "node"] - } + "preserveConstEnums": true + }, + "include": [], + "files": [], + "references": [ + { + "path": "./tsconfig.lib.json" + }, + { + "path": "./tsconfig.spec.json" + } + ] } diff --git a/packages/react-conformance-make-styles/tsconfig.lib.json b/packages/react-conformance-make-styles/tsconfig.lib.json new file mode 100644 index 0000000000000..6b3a491dc620a --- /dev/null +++ b/packages/react-conformance-make-styles/tsconfig.lib.json @@ -0,0 +1,13 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "noEmit": false, + "lib": ["DOM", "ES2019"], + "outDir": "dist", + "declaration": true, + "types": ["static-assets", "environment", "jest", "inline-style-expand-shorthand"], + "module": "CommonJS" + }, + "exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.test.ts", "**/*.test.tsx"], + "include": ["./src/**/*.ts", "./src/**/*.tsx"] +} diff --git a/packages/react-conformance-make-styles/tsconfig.spec.json b/packages/react-conformance-make-styles/tsconfig.spec.json new file mode 100644 index 0000000000000..28fa5226de420 --- /dev/null +++ b/packages/react-conformance-make-styles/tsconfig.spec.json @@ -0,0 +1,9 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "module": "CommonJS", + "outDir": "dist", + "types": ["jest", "node", "inline-style-expand-shorthand"] + }, + "include": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.test.ts", "**/*.test.tsx", "**/*.d.ts"] +}