Skip to content

Commit

Permalink
perf: speed up tsc by not running on cypress files during .d.ts gener…
Browse files Browse the repository at this point in the history
…ation and type-checking
  • Loading branch information
Hotell committed Apr 8, 2024
1 parent 4d91639 commit 3eae6f9
Show file tree
Hide file tree
Showing 15 changed files with 47 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "perf: speed up tsc by not running on cypress files during .d.ts generation and type-checking",
"packageName": "@fluentui/react-drawer",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "perf: speed up tsc by not running on cypress files during .d.ts generation and type-checking",
"packageName": "@fluentui/react-infobutton",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "perf: speed up tsc by not running on cypress files during .d.ts generation and type-checking",
"packageName": "@fluentui/react-infolabel",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "perf: speed up tsc by not running on cypress files during .d.ts generation and type-checking",
"packageName": "@fluentui/react-tree",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference types="cypress-real-events" />
import * as React from 'react';
import { mount as mountBase } from '@cypress/react';

Expand Down
5 changes: 4 additions & 1 deletion packages/react-components/react-drawer/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@
},
"exclude": [
"./src/testing/**",
"./src/e2e/**",
"**/*.spec.ts",
"**/*.spec.tsx",
"**/*.test.ts",
"**/*.test.tsx",
"**/*.stories.ts",
"**/*.stories.tsx"
"**/*.stories.tsx",
"**/*.cy.ts",
"**/*.cy.tsx"
],
"include": ["./src/**/*.ts", "./src/**/*.tsx"]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* eslint-disable deprecation/deprecation */
/// <reference types="cypress-real-events" />

import * as React from 'react';
import { mount as mountBase } from '@cypress/react';
Expand Down
4 changes: 3 additions & 1 deletion packages/react-components/react-infobutton/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"**/*.test.ts",
"**/*.test.tsx",
"**/*.stories.ts",
"**/*.stories.tsx"
"**/*.stories.tsx",
"**/*.cy.ts",
"**/*.cy.tsx"
],
"include": ["./src/**/*.ts", "./src/**/*.tsx"]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference types="cypress-real-events" />

import * as React from 'react';
import { mount as mountBase } from '@cypress/react';
import { FluentProvider } from '@fluentui/react-provider';
Expand Down
3 changes: 3 additions & 0 deletions packages/react-components/react-infolabel/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
},
{
"path": "./.storybook/tsconfig.json"
},
{
"path": "./tsconfig.cy.json"
}
]
}
4 changes: 3 additions & 1 deletion packages/react-components/react-infolabel/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"**/*.test.ts",
"**/*.test.tsx",
"**/*.stories.ts",
"**/*.stories.tsx"
"**/*.stories.tsx",
"**/*.cy.ts",
"**/*.cy.tsx"
],
"include": ["./src/**/*.ts", "./src/**/*.tsx"]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/// <reference types="cypress" />
/// <reference types="cypress-real-events" />

import * as React from 'react';
import { mount as mountBase } from '@cypress/react';
import { FluentProvider } from '@fluentui/react-provider';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/// <reference types="cypress" />
/// <reference types="cypress-real-events" />

import * as React from 'react';
import { mount as mountBase } from '@cypress/react';
import { FluentProvider } from '@fluentui/react-provider';
Expand Down
3 changes: 3 additions & 0 deletions packages/react-components/react-tree/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
},
{
"path": "./.storybook/tsconfig.json"
},
{
"path": "./tsconfig.cy.json"
}
]
}
4 changes: 3 additions & 1 deletion packages/react-components/react-tree/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"**/*.test.ts",
"**/*.test.tsx",
"**/*.stories.ts",
"**/*.stories.tsx"
"**/*.stories.tsx",
"**/*.cy.ts",
"**/*.cy.tsx"
],
"include": ["./src/**/*.ts", "./src/**/*.tsx"]
}

0 comments on commit 3eae6f9

Please sign in to comment.