Skip to content

Instantly share code, notes, and snippets.

@natemcmaster
Created October 7, 2016 00:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save natemcmaster/a7736a0fe62f50aa43890733a732b0a5 to your computer and use it in GitHub Desktop.
Save natemcmaster/a7736a0fe62f50aa43890733a732b0a5 to your computer and use it in GitHub Desktop.
dotnet-sql-cache as NPM package
{
"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/**/*"
]
}
#!/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