Skip to content

Commit

Permalink
fix pretarget example
Browse files Browse the repository at this point in the history
  • Loading branch information
BioPhoton committed Sep 10, 2024
1 parent bfa7888 commit ad2cbca
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
7 changes: 7 additions & 0 deletions e2e-examples/cli-e2e-pretarget/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
"targets": {
"lint": {},
"pretarget-e2e": {
"dependsOn": [
{
"projects": "self",
"target": "pretarget-setup-env",
"params": "forward"
}
],
"executor": "@nx/vite:test",
"inputs": ["default", "^production"],
"outputs": ["{options.reportsDirectory}"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { mkdir, readFile, rm, writeFile } from 'node:fs/promises';
import { executeProcess, objectToCliArgs } from '@org/test-utils';

describe('CLI command - sort', () => {
const workspaceRoot = join('tmp', 'npm-env', 'cli-e2e-pretarget');
const workspaceRoot = join('tmp', 'environment', 'cli-e2e-pretarget');
const baseDir = join(workspaceRoot, '__test_env__', 'cli-command-sort');

afterEach(async () => {
Expand Down
3 changes: 0 additions & 3 deletions e2e-examples/cli-e2e-pretarget/tooling/pretarget.plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ function verdaccioTargets(
},
},
'pretarget-setup-env': {
cache: true,
inputs: ['default', '^production', '!{projectRoot}/**/*.md'],
outputs: [`{workspaceRoot}/${tmpEnv}/${projectName}/node_modules`],
executor: 'nx:run-commands',
options: {
commands: [
Expand Down

0 comments on commit ad2cbca

Please sign in to comment.