mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 15:02:30 +02:00
docs: record rc1 publication dry-run evidence (#1822)
This commit is contained in:
parent
0598af70a5
commit
bfacf37715
6 changed files with 148 additions and 21 deletions
|
|
@ -71,9 +71,16 @@ function buildExpectedPublishPaths(repoRoot) {
|
|||
"agent.yaml",
|
||||
"VERSION",
|
||||
]
|
||||
const exclusionPaths = [
|
||||
"!**/__pycache__/**",
|
||||
"!**/*.pyc",
|
||||
"!**/*.pyo",
|
||||
"!**/*.pyd",
|
||||
"!**/.pytest_cache/**",
|
||||
]
|
||||
|
||||
const combined = new Set(
|
||||
[...modules.flatMap((module) => module.paths || []), ...extraPaths].map(normalizePublishPath)
|
||||
[...modules.flatMap((module) => module.paths || []), ...extraPaths, ...exclusionPaths].map(normalizePublishPath)
|
||||
)
|
||||
|
||||
return [...combined]
|
||||
|
|
@ -139,6 +146,17 @@ function main() {
|
|||
`npm pack should not include ${excludedPath}`
|
||||
)
|
||||
}
|
||||
|
||||
for (const packagedPath of packagedPaths) {
|
||||
assert.ok(
|
||||
!packagedPath.includes("__pycache__/"),
|
||||
`npm pack should not include Python bytecode cache path ${packagedPath}`
|
||||
)
|
||||
assert.ok(
|
||||
!/\.py[cod]$/.test(packagedPath),
|
||||
`npm pack should not include Python bytecode file ${packagedPath}`
|
||||
)
|
||||
}
|
||||
}],
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue