@mui/internal-code-infra 0.0.4-canary.51 → 0.0.4-canary.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/src/cli/cmdNetlifyIgnore.mjs +9 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/internal-code-infra",
|
|
3
|
-
"version": "0.0.4-canary.
|
|
3
|
+
"version": "0.0.4-canary.52",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "Infra scripts and configs to be used across MUI repos.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -139,9 +139,9 @@
|
|
|
139
139
|
"unified-lint-rule": "^3.0.1",
|
|
140
140
|
"unist-util-visit": "^5.1.0",
|
|
141
141
|
"yargs": "^18.0.0",
|
|
142
|
-
"@mui/internal-babel-plugin-minify-errors": "2.0.8-canary.27",
|
|
143
142
|
"@mui/internal-babel-plugin-display-name": "1.0.4-canary.20",
|
|
144
|
-
"@mui/internal-babel-plugin-resolve-imports": "2.0.7-canary.36"
|
|
143
|
+
"@mui/internal-babel-plugin-resolve-imports": "2.0.7-canary.36",
|
|
144
|
+
"@mui/internal-babel-plugin-minify-errors": "2.0.8-canary.27"
|
|
145
145
|
},
|
|
146
146
|
"peerDependencies": {
|
|
147
147
|
"@next/eslint-plugin-next": "*",
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
"publishConfig": {
|
|
192
192
|
"access": "public"
|
|
193
193
|
},
|
|
194
|
-
"gitSha": "
|
|
194
|
+
"gitSha": "199cf2a0437625d612e5c2bbb6e63c1e9c9e8ecc",
|
|
195
195
|
"scripts": {
|
|
196
196
|
"build": "tsgo -p tsconfig.build.json",
|
|
197
197
|
"typescript": "tsgo -noEmit",
|
|
@@ -18,15 +18,14 @@ import { getTransitiveDependencies, getWorkspacePackages } from '../utils/pnpm.m
|
|
|
18
18
|
/**
|
|
19
19
|
* Generate the ignore command string for netlify.toml.
|
|
20
20
|
*
|
|
21
|
-
* Production
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* touch the watched paths.
|
|
21
|
+
* Production and branch deploys (every Netlify $CONTEXT other than
|
|
22
|
+
* "deploy-preview") always build, so downstream plugins (e.g. e2e triggers)
|
|
23
|
+
* run on every deploy and catch regressions in external dependencies even
|
|
24
|
+
* when the commit doesn't touch the watched paths.
|
|
26
25
|
*
|
|
27
|
-
*
|
|
28
|
-
* merge-base with origin/<baseBranch>. This way a PR rebase whose
|
|
29
|
-
* commit doesn't touch the watched paths still rebuilds when the PR as a
|
|
26
|
+
* Only deploy-previews (PR previews) are eligible to be skipped: they diff
|
|
27
|
+
* against the merge-base with origin/<baseBranch>. This way a PR rebase whose
|
|
28
|
+
* head commit doesn't touch the watched paths still rebuilds when the PR as a
|
|
30
29
|
* whole introduces changes to them — otherwise downstream plugins silently
|
|
31
30
|
* never run.
|
|
32
31
|
*
|
|
@@ -39,7 +38,7 @@ import { getTransitiveDependencies, getWorkspacePackages } from '../utils/pnpm.m
|
|
|
39
38
|
function generateIgnoreCommand(paths, packagePath, workspaceRoot, baseBranch) {
|
|
40
39
|
const relFromBase = `${toPosixPath(path.relative(packagePath, workspaceRoot))}/`;
|
|
41
40
|
const pathsStr = paths.join(' ');
|
|
42
|
-
return ` ignore = """cd ${relFromBase} && [ "$CONTEXT"
|
|
41
|
+
return ` ignore = """cd ${relFromBase} && [ "$CONTEXT" = "deploy-preview" ] && git fetch origin ${baseBranch} --depth=500 -q && git diff --quiet FETCH_HEAD...$COMMIT_REF -- ${pathsStr}"""`;
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
/**
|
|
@@ -113,7 +112,7 @@ export default /** @type {import('yargs').CommandModule<{}, Args>} */ ({
|
|
|
113
112
|
type: 'string',
|
|
114
113
|
default: 'master',
|
|
115
114
|
describe:
|
|
116
|
-
"Branch to compare PRs against (the site's production branch on Netlify). Production
|
|
115
|
+
"Branch to compare PRs against (the site's production branch on Netlify). Production and branch deploys always rebuild regardless of this value.",
|
|
117
116
|
})
|
|
118
117
|
.example('$0 netlify-ignore @mui/internal-docs-infra', 'Update netlify.toml for a workspace')
|
|
119
118
|
.example(
|