Created
October 7, 2016 00:51
-
-
Save natemcmaster/a7736a0fe62f50aa43890733a732b0a5 to your computer and use it in GitHub Desktop.
dotnet-sql-cache as NPM package
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
{ | |
"name": "dotnet-sql-cache", | |
"version": "1.0.0-preview2-final", | |
"bin": { "dotnet-sql-cache": "./shim.js" }, | |
"files": [ | |
"shim.js", | |
"**/*.dll", | |
"*.runtimeconfig.json", | |
"*.deps.json", | |
"runtimes/**/*" | |
] | |
} |
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
#!/usr/bin/env node | |
'use strict'; | |
const path = require('path') | |
let args = [path.join(__dirname, 'dotnet-sql-cache.dll')] | |
args = args.concat(process.argv.slice(2)); | |
const cp = require('child_process'); | |
cp.spawn('dotnet', args, { 'stdio': 'inherit' }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment