Skip to content

Commit

Permalink
fix output configurations for npm packages, add gitignores
Browse files Browse the repository at this point in the history
  • Loading branch information
astone123 committed Aug 7, 2023
1 parent 0fbc689 commit 242e6db
Show file tree
Hide file tree
Showing 18 changed files with 60 additions and 11 deletions.
3 changes: 2 additions & 1 deletion npm/mount-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
"{workspaceRoot}/scripts"
],
"outputs": [
"{workspaceRoot}/cli/mount-utils"
"{workspaceRoot}/cli/mount-utils",
"{projectRoot}/dist"
]
}
}
Expand Down
3 changes: 2 additions & 1 deletion npm/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@
"{workspaceRoot}/scripts"
],
"outputs": [
"{workspaceRoot}/cli/react"
"{workspaceRoot}/cli/react",
"{projectRoot}/dist"
]
}
}
Expand Down
3 changes: 2 additions & 1 deletion npm/react18/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
"{workspaceRoot}/scripts"
],
"outputs": [
"{workspaceRoot}/cli/react18"
"{workspaceRoot}/cli/react18",
"{projectRoot}/dist"
]
}
}
Expand Down
3 changes: 2 additions & 1 deletion npm/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
"{workspaceRoot}/scripts"
],
"outputs": [
"{workspaceRoot}/cli/svelte"
"{workspaceRoot}/cli/svelte",
"{projectRoot}/dist"
]
}
}
Expand Down
9 changes: 9 additions & 0 deletions npm/vite-dev-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,14 @@
"module": "dist/index.js",
"publishConfig": {
"access": "public"
},
"nx": {
"targets": {
"build": {
"outputs": [
"{projectRoot}/dist"
]
}
}
}
}
9 changes: 9 additions & 0 deletions npm/vite-plugin-cypress-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,14 @@
"module": "dist/index.js",
"publishConfig": {
"access": "public"
},
"nx": {
"targets": {
"build": {
"outputs": [
"{projectRoot}/dist"
]
}
}
}
}
3 changes: 2 additions & 1 deletion npm/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@
"{workspaceRoot}/scripts"
],
"outputs": [
"{workspaceRoot}/cli/vue"
"{workspaceRoot}/cli/vue",
"{projectRoot}/dist"
]
}
}
Expand Down
3 changes: 2 additions & 1 deletion npm/vue2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
"{workspaceRoot}/scripts"
],
"outputs": [
"{workspaceRoot}/cli/vue2"
"{workspaceRoot}/cli/vue2",
"{projectRoot}/dist"
]
}
}
Expand Down
9 changes: 9 additions & 0 deletions npm/webpack-dev-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,14 @@
"bugs": "https://github.com/cypress-io/cypress/issues/new?template=1-bug-report.md",
"publishConfig": {
"access": "public"
},
"nx": {
"targets": {
"build": {
"outputs": [
"{projectRoot}/dist"
]
}
}
}
}
11 changes: 10 additions & 1 deletion npm/webpack-preprocessor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,14 @@
"cypress-plugin",
"cypress-preprocessor",
"webpack"
]
],
"nx": {
"targets": {
"build": {
"outputs": [
"{projectRoot}/dist"
]
}
}
}
}
4 changes: 3 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
}
},
"namedInputs": {
"sharedGlobals": [],
"sharedGlobals": [
"{workspaceRoot}/scripts"
],
"default": [
"{projectRoot}/**/*",
"sharedGlobals"
Expand Down
1 change: 1 addition & 0 deletions packages/config/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/**/*.js
2 changes: 1 addition & 1 deletion packages/data-context/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"targets": {
"build": {
"outputs": [
"{workspaceRoot}/src/**/*.js"
"{projectRoot}/src/**/*.js"
]
}
}
Expand Down
1 change: 1 addition & 0 deletions packages/resolve-dist/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib/**/*.js
1 change: 1 addition & 0 deletions packages/rewriter/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib/**/*.js
1 change: 1 addition & 0 deletions packages/scaffold-config/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/**/*.js
1 change: 1 addition & 0 deletions packages/server/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib/**/*.js
4 changes: 2 additions & 2 deletions scripts/binary/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ export async function buildCypressApp (options: BuildCypressAppOpts) {
if (!keepBuild) {
log('#buildPackages')

await execa('yarn', ['lerna', 'run', 'build-prod', '--ignore', 'cli', '--concurrency', '4'], {
await execa('yarn', ['lerna', 'run', 'build', '--ignore', 'cli', '--concurrency', '4'], {
stdio: 'inherit',
cwd: CY_ROOT_DIR,
})

await execa('yarn', ['lerna', 'run', 'build', '--ignore', 'cli', '--concurrency', '4'], {
await execa('yarn', ['lerna', 'run', 'build-prod', '--ignore', 'cli', '--concurrency', '4'], {
stdio: 'inherit',
cwd: CY_ROOT_DIR,
})
Expand Down

0 comments on commit 242e6db

Please sign in to comment.