Browse Source

use mjs for module files

pull/123/head
butlerx 7 years ago
committed by cbutler
parent
commit
272c38b2f8
No known key found for this signature in database GPG Key ID: 9EB3D625BD14DDEC
  1. 3
      app.js
  2. 3
      bin/index.js
  3. 0
      cli.mjs
  4. 4
      index.js
  5. 79
      package.json
  6. 0
      wetty.mjs
  7. 6
      yarn.lock

3
app.js

@ -1,3 +0,0 @@
#! /usr/bin/env node
require('@std/esm');
require('./cli');

3
bin/index.js

@ -0,0 +1,3 @@
#! /usr/bin/env node
require = require('@std/esm')(module); // eslint-disable-line no-global-assign
require('../cli.mjs');

0
cli.js → cli.mjs

4
index.js

@ -1,2 +1,2 @@
require('@std/esm'); require = require('@std/esm')(module); // eslint-disable-line no-global-assign
module.exports = require('./wetty').default; module.exports = require('./wetty.mjs').default;

79
package.json

@ -1,8 +1,46 @@
{ {
"name": "wetty.js", "name": "wetty.js",
"version": "0.5.0", "version": "0.5.0",
"description": "Wetty = Web + tty. Terminal access in browser over http/https ",
"homepage": "https://github.com/butlerx/wetty",
"repository": {
"type": "git",
"url": "git://github.com/butlerx/wetty.git"
},
"author": "Cian Butler <butlerx@notthe.cloud> (https://github.com/butlerx)",
"license": "MIT",
"bugs": {
"url": "https://github.com/butlerx/wetty/issues"
},
"main": "index.js",
"files": [
"bin",
"public",
"app.js",
"cli.js",
"wetty.js"
],
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"build": "gulp",
"start": "node bin",
"commit": "git add public",
"fix": "eslint . --fix"
},
"bin": {
"wetty": "./bin/index.js"
},
"pre-commit": [
"fix",
"commit"
],
"preferGlobal": "true",
"@std/esm": {
"cjs": "true"
},
"dependencies": { "dependencies": {
"@std/esm": "^0.2.2", "@std/esm": "^0.12.1",
"express": "^4.15.3", "express": "^4.15.3",
"fs-extra": "^4.0.1", "fs-extra": "^4.0.1",
"optimist": "^0.6", "optimist": "^0.6",
@ -37,44 +75,5 @@
"gulp-concat": "^2.6.1", "gulp-concat": "^2.6.1",
"gulp-minify": "^1.0.0", "gulp-minify": "^1.0.0",
"gulp-shell": "^0.6.3" "gulp-shell": "^0.6.3"
},
"pre-commit": [
"fix",
"commit"
],
"description": "Wetty = Web + tty. Terminal access in browser over http/https ",
"repository": {
"type": "git",
"url": "git://github.com/butlerx/wetty.git"
},
"author": "Cian Butler <butlerx@notthe.cloud> (https://github.com/butlerx)",
"license": "MIT",
"bugs": {
"url": "https://github.com/butlerx/wetty/issues"
},
"homepage": "https://github.com/butlerx/wetty",
"preferGlobal": "true",
"main": "index.js",
"bin": {
"wetty": "./app.js"
},
"@std/esm": {
"esm": "js",
"cjs": "true"
},
"files": [
"bin",
"public",
"app.js",
"cli.js",
"wetty.js"
],
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"build": "gulp",
"start": "node app.js",
"commit": "git add public",
"fix": "eslint . --fix"
} }
} }

0
wetty.js → wetty.mjs

6
yarn.lock

@ -2,9 +2,9 @@
# yarn lockfile v1 # yarn lockfile v1
"@std/esm@^0.2.2": "@std/esm@^0.12.1":
version "0.2.2" version "0.12.1"
resolved "https://registry.yarnpkg.com/@std/esm/-/esm-0.2.2.tgz#8d3fdacae23015eae01db739a9f76d7cd1ab617d" resolved "https://registry.yarnpkg.com/@std/esm/-/esm-0.12.1.tgz#d07b7c5e2701beade1e7db74b95484f5d91c46bf"
abbrev@1: abbrev@1:
version "1.1.0" version "1.1.0"

Loading…
Cancel
Save