mirror of
				https://github.com/threeal/cmake-action.git
				synced 2025-11-04 05:43:42 +00:00 
			
		
		
		
	feat: remove setting the default of source-dir to .
				
					
				
			This commit is contained in:
		
							parent
							
								
									6c4e2145fb
								
							
						
					
					
						commit
						72821fb225
					
				
							
								
								
									
										2
									
								
								dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							@ -27771,7 +27771,7 @@ var external_node_path_default = /*#__PURE__*/__nccwpck_require__.n(external_nod
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
function getInputs() {
 | 
			
		||||
    const sourceDir = (0,core.getInput)("source-dir") || ".";
 | 
			
		||||
    const sourceDir = (0,core.getInput)("source-dir");
 | 
			
		||||
    return {
 | 
			
		||||
        sourceDir,
 | 
			
		||||
        buildDir: (0,core.getInput)("build-dir") || external_node_path_default().join(sourceDir, "build"),
 | 
			
		||||
 | 
			
		||||
@ -150,7 +150,7 @@ describe("get action inputs", () => {
 | 
			
		||||
      });
 | 
			
		||||
 | 
			
		||||
      expect(getInputs()).toStrictEqual({
 | 
			
		||||
        sourceDir: ".",
 | 
			
		||||
        sourceDir: "",
 | 
			
		||||
        buildDir: "build",
 | 
			
		||||
        generator: "",
 | 
			
		||||
        cCompiler: "",
 | 
			
		||||
 | 
			
		||||
@ -16,7 +16,7 @@ export interface Inputs {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export function getInputs(): Inputs {
 | 
			
		||||
  const sourceDir = getInput("source-dir") || ".";
 | 
			
		||||
  const sourceDir = getInput("source-dir");
 | 
			
		||||
  return {
 | 
			
		||||
    sourceDir,
 | 
			
		||||
    buildDir: getInput("build-dir") || path.join(sourceDir, "build"),
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user