Skip to content

Commit 39ec97d

Browse files
committed
refactor: wip e2e
1 parent 5be4980 commit 39ec97d

File tree

7 files changed

+98
-1
lines changed

7 files changed

+98
-1
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Local development environment variables
2+
# Copy this to .env.local (gitignored) and customize for your setup
3+
4+
# Enable tsx for TypeScript execution in Nx
5+
# This allows running local generator/executor directly as .ts files without pre-compilation
6+
# This allows the local plugins to import files with .js extensions (same as the packages in the repository)
7+
NODE_OPTIONS=--import tsx
8+
# This is used to resolve the paths in the local generator/executor so local packages can be imported as path aliases
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"compileOnSave": false,
3+
"compilerOptions": {
4+
"rootDir": ".",
5+
"sourceMap": true,
6+
"strict": true,
7+
"noUncheckedIndexedAccess": true,
8+
"declaration": false,
9+
"moduleResolution": "node",
10+
"emitDecoratorMetadata": true,
11+
"experimentalDecorators": true,
12+
"importHelpers": false,
13+
"target": "es2022",
14+
"module": "esnext",
15+
"lib": ["es2023", "dom"],
16+
"skipLibCheck": true,
17+
"skipDefaultLibCheck": true,
18+
"baseUrl": ".",
19+
"resolveJsonModule": true,
20+
"allowSyntheticDefaultImports": true,
21+
"verbatimModuleSyntax": true
22+
},
23+
"exclude": ["node_modules", "tmp"]
24+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Local development environment variables
2+
# Copy this to .env.local (gitignored) and customize for your setup
3+
4+
# Enable tsx for TypeScript execution in Nx
5+
# This allows running local generator/executor directly as .ts files without pre-compilation
6+
# This allowes the local plugins to import files with .js extensions (same as the packages in the repository)
7+
NODE_OPTIONS=--import tsx
8+
# This is used to resolve the paths in the local generator/executor so local packages can be imported as path aliases
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"compileOnSave": false,
3+
"compilerOptions": {
4+
"rootDir": ".",
5+
"sourceMap": true,
6+
"strict": true,
7+
"noUncheckedIndexedAccess": true,
8+
"declaration": false,
9+
"moduleResolution": "node",
10+
"emitDecoratorMetadata": true,
11+
"experimentalDecorators": true,
12+
"importHelpers": false,
13+
"target": "es2022",
14+
"module": "esnext",
15+
"lib": ["es2023", "dom"],
16+
"skipLibCheck": true,
17+
"skipDefaultLibCheck": true,
18+
"baseUrl": ".",
19+
"resolveJsonModule": true,
20+
"allowSyntheticDefaultImports": true,
21+
"verbatimModuleSyntax": true
22+
},
23+
"exclude": ["node_modules", "tmp"]
24+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Local development environment variables
2+
# Copy this to .env.local (gitignored) and customize for your setup
3+
4+
# Enable tsx for TypeScript execution in Nx
5+
# This allows running local generator/executor directly as .ts files without pre-compilation
6+
# This allowes the local plugins to import files with .js extensions (same as the packages in the repository)
7+
NODE_OPTIONS=--import tsx
8+
# This is used to resolve the paths in the local generator/executor so local packages can be imported as path aliases
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"compileOnSave": false,
3+
"compilerOptions": {
4+
"rootDir": ".",
5+
"sourceMap": true,
6+
"strict": true,
7+
"noUncheckedIndexedAccess": true,
8+
"declaration": false,
9+
"moduleResolution": "node",
10+
"emitDecoratorMetadata": true,
11+
"experimentalDecorators": true,
12+
"importHelpers": false,
13+
"target": "es2022",
14+
"module": "esnext",
15+
"lib": ["es2023", "dom"],
16+
"skipLibCheck": true,
17+
"skipDefaultLibCheck": true,
18+
"baseUrl": ".",
19+
"resolveJsonModule": true,
20+
"allowSyntheticDefaultImports": true,
21+
"verbatimModuleSyntax": true
22+
},
23+
"exclude": ["node_modules", "tmp"]
24+
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"scripts": {
1616
"prepare": "husky install",
1717
"commit": "git-cz",
18-
"knip": "knip"
18+
"knip": "knip",
19+
"nx": "NODE_OPTIONS='--import tsx' tsx --tsconfig=tsconfig.base.json ./node_modules/.bin/nx"
1920
},
2021
"private": true,
2122
"dependencies": {

0 commit comments

Comments
 (0)