mirror of
				https://github.com/threeal/cmake-action.git
				synced 2025-11-04 05:43:42 +00:00 
			
		
		
		
	build(typescript): modify source files to be compiled to the same dir
This commit is contained in:
		
							parent
							
								
									8bd45b8e9b
								
							
						
					
					
						commit
						d75cb1e4e6
					
				
							
								
								
									
										2
									
								
								.gitattributes
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.gitattributes
									
									
									
									
										vendored
									
									
								
							@ -1,2 +1,2 @@
 | 
				
			|||||||
main/index.mjs -diff linguist-generated
 | 
					dist/index.mjs -diff linguist-generated
 | 
				
			||||||
yarn.lock -diff linguist-generated
 | 
					yarn.lock -diff linguist-generated
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@ -5,5 +5,6 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
build/
 | 
					build/
 | 
				
			||||||
coverage/
 | 
					coverage/
 | 
				
			||||||
dist/
 | 
					 | 
				
			||||||
node_modules/
 | 
					node_modules/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					src/*.mjs
 | 
				
			||||||
 | 
				
			|||||||
@ -7,8 +7,5 @@
 | 
				
			|||||||
      "lines": 100,
 | 
					      "lines": 100,
 | 
				
			||||||
      "statements": 100
 | 
					      "statements": 100
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  },
 | 
					 | 
				
			||||||
  "moduleNameMapper": {
 | 
					 | 
				
			||||||
    "^(\\.{1,2}/.*)\\.mjs$": "<rootDir>/dist/$1.mjs"
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -3,7 +3,7 @@
 | 
				
			|||||||
  "private": true,
 | 
					  "private": true,
 | 
				
			||||||
  "type": "module",
 | 
					  "type": "module",
 | 
				
			||||||
  "scripts": {
 | 
					  "scripts": {
 | 
				
			||||||
    "build": "tsc && ncc build dist/main.mjs -o main",
 | 
					    "build": "tsc && ncc build src/main.mjs -o main",
 | 
				
			||||||
    "format": "prettier --write . !main !README.md",
 | 
					    "format": "prettier --write . !main !README.md",
 | 
				
			||||||
    "lint": "eslint --ignore-path .gitignore .",
 | 
					    "lint": "eslint --ignore-path .gitignore .",
 | 
				
			||||||
    "test": "tsc && jest"
 | 
					    "test": "tsc && jest"
 | 
				
			||||||
 | 
				
			|||||||
@ -3,7 +3,6 @@
 | 
				
			|||||||
    "exactOptionalPropertyTypes": true,
 | 
					    "exactOptionalPropertyTypes": true,
 | 
				
			||||||
    "strict": true,
 | 
					    "strict": true,
 | 
				
			||||||
    "module": "node16",
 | 
					    "module": "node16",
 | 
				
			||||||
    "outDir": "dist",
 | 
					 | 
				
			||||||
    "target": "es2022",
 | 
					    "target": "es2022",
 | 
				
			||||||
    "skipLibCheck": true
 | 
					    "skipLibCheck": true
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user