MCPcopy Index your code
hub / github.com/adobe/react-spectrum / isPublishing

Function isPublishing

yarn.config.cjs:197–214  ·  view source on GitHub ↗

@param {Workspace} workspace

(workspace)

Source from the content-addressed store, hash-verified

195
196/** @param {Workspace} workspace */
197function isPublishing(workspace) {
198 let name = workspace.ident;
199 // should allowlist instead? workspace.manifest.private?
200 return (
201 !name.includes('@react-types') &&
202 !name.includes('@spectrum-icons') &&
203 !name.includes('@react-aria/example-theme') &&
204 !name.includes('@react-spectrum/style-macro-s1') &&
205 !name.includes('@react-spectrum/docs') &&
206 !name.includes('@react-spectrum/s2-docs') &&
207 !name.includes('parcel') &&
208 !name.includes('@adobe/spectrum-css-temp') &&
209 !name.includes('css-module-types') &&
210 !name.includes('eslint') &&
211 !name.includes('optimize-locales-plugin') &&
212 name !== 'react-spectrum-monorepo'
213 );
214}
215
216/** @param {Context} context */
217function enforcePublishing({Yarn}) {

Callers 3

enforcePublishingFunction · 0.85
enforceExportsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected