-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2c493fb
commit f7cf6fc
Showing
45 changed files
with
9,237 additions
and
8,939 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,68 @@ | ||
import { build } from 'esbuild' | ||
import { build } from "esbuild"; | ||
|
||
// Build for index.js | ||
build({ | ||
entryPoints: ['src/index.js'], | ||
bundle: true, | ||
outfile: 'dist/index.js', | ||
format: "esm", | ||
target: "esnext", | ||
platform: "node", | ||
treeShaking: false | ||
entryPoints: ["src/index.js"], | ||
bundle: true, | ||
outfile: "dist/index.js", | ||
format: "esm", | ||
target: "esnext", | ||
platform: "node", | ||
treeShaking: false, | ||
}).catch((error) => { | ||
console.error(error) | ||
process.exit(1) | ||
}) | ||
console.error(error); | ||
process.exit(1); | ||
}); | ||
|
||
// Build for buffer.js | ||
build({ | ||
entryPoints: ['src/buffer.js'], | ||
bundle: true, | ||
outfile: 'dist/buffer.js', | ||
format: "esm", | ||
target: "esnext", | ||
platform: "node", | ||
treeShaking: false | ||
entryPoints: ["src/buffer.js"], | ||
bundle: true, | ||
outfile: "dist/buffer.js", | ||
format: "esm", | ||
target: "esnext", | ||
platform: "node", | ||
treeShaking: false, | ||
}).catch((error) => { | ||
console.error(error) | ||
process.exit(1) | ||
}) | ||
console.error(error); | ||
process.exit(1); | ||
}); | ||
|
||
build({ | ||
entryPoints: ['src/path.js'], | ||
bundle: true, | ||
outfile: 'dist/path.js', | ||
format: "esm", | ||
target: "esnext", | ||
platform: "node", | ||
treeShaking: false | ||
entryPoints: ["src/path.js"], | ||
bundle: true, | ||
outfile: "dist/path.js", | ||
format: "esm", | ||
target: "esnext", | ||
platform: "node", | ||
treeShaking: false, | ||
}).catch((error) => { | ||
console.error(error) | ||
process.exit(1) | ||
}) | ||
console.error(error); | ||
process.exit(1); | ||
}); | ||
|
||
build({ | ||
entryPoints: ['src/crypto.ts'], | ||
bundle: true, | ||
outfile: 'dist/crypto.js', | ||
format: "esm", | ||
target: "esnext", | ||
platform: "node", | ||
treeShaking: false | ||
entryPoints: ["src/crypto.ts"], | ||
bundle: true, | ||
outfile: "dist/crypto.js", | ||
format: "esm", | ||
target: "esnext", | ||
platform: "node", | ||
treeShaking: false, | ||
}).catch((error) => { | ||
console.error(error) | ||
process.exit(1) | ||
}) | ||
console.error(error); | ||
process.exit(1); | ||
}); | ||
|
||
build({ | ||
entryPoints: ['src/arakoo-jsonnet.js'], | ||
bundle: true, | ||
outfile: 'dist/arakoo-jsonnet.js', | ||
format: "esm", | ||
target: "esnext", | ||
platform: "node", | ||
treeShaking: false | ||
entryPoints: ["src/arakoo-jsonnet.js"], | ||
bundle: true, | ||
outfile: "dist/arakoo-jsonnet.js", | ||
format: "esm", | ||
target: "esnext", | ||
platform: "node", | ||
treeShaking: false, | ||
}).catch((error) => { | ||
console.error(error) | ||
process.exit(1) | ||
}) | ||
console.error(error); | ||
process.exit(1); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
const parseJsonnet = globalThis.parseJsonnet | ||
const parseJsonnet = globalThis.parseJsonnet; | ||
|
||
export { | ||
parseJsonnet, | ||
} | ||
export { parseJsonnet }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,17 @@ | ||
|
||
import { | ||
constants, | ||
kMaxLength, | ||
kStringMaxLength, | ||
Buffer, | ||
SlowBuffer, | ||
} from './internal/internal_buffer'; | ||
} from "./internal/internal_buffer"; | ||
|
||
export { | ||
constants, | ||
kMaxLength, | ||
kStringMaxLength, | ||
Buffer, | ||
SlowBuffer, | ||
}; | ||
export { constants, kMaxLength, kStringMaxLength, Buffer, SlowBuffer }; | ||
|
||
export default { | ||
constants, | ||
kMaxLength, | ||
kStringMaxLength, | ||
Buffer, | ||
SlowBuffer, | ||
} | ||
}; |
Oops, something went wrong.