@explorable-viz/fluid 0.7.44 → 0.7.45

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@ require('http-shutdown').extend();
5
5
 
6
6
  const app = express();
7
7
 
8
- const root = process.cwd() + '/dist/' + process.argv[3];
8
+ const root = process.cwd() + '/dist/' + process.argv[2];
9
9
  app.use(serve(root));
10
10
 
11
11
  const server = app.listen(8080, function() {
@@ -14,10 +14,10 @@ const server = app.listen(8080, function() {
14
14
 
15
15
  (async () => {
16
16
  try {
17
- if (process.argv.length == 5 && process.argv[4] == "-l") {
18
- module = process.cwd() + '/dist/' + process.argv[2]
17
+ if (process.argv.length == 4) {
18
+ module = process.cwd() + process.argv[3];
19
19
  } else {
20
- module = process.argv[2]
20
+ module = root + '/test.mjs';
21
21
  }
22
22
  console.log('Loading Puppeteer test module:', module);
23
23
  import( module ).then(({ main }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explorable-viz/fluid",
3
- "version": "0.7.44",
3
+ "version": "0.7.45",
4
4
  "description": "Fluid is an experimental programming language which integrates a bidirectional dynamic analysis to connect outputs to data sources in a fine-grained way. Fluid is implemented in PureScript and runs in the browser.",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -79,7 +79,7 @@
79
79
  },
80
80
  "bin": {
81
81
  "fluid": "./dist/fluid/fluid.mjs",
82
- "test-website": "./dist/fluid/puppeteer.js"
82
+ "website-test": "./dist/fluid/puppeteer.js"
83
83
  },
84
84
  "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
85
85
  }