Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { presets: ['@babel/env'] };
4 changes: 4 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
globals:
Promise: true

parserOptions:
sourceType: module
ecmaVersion: 2016

rules:
array-bracket-spacing: [2, "never"]
brace-style: [2, "1tbs"]
Expand Down
12 changes: 7 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
branches:
only:
- master
language: node_js
node_js:
- "node"
- "6"
- "10"
- "12"
- "14"
sudo: false
script:
- npm run build
- npm run test
- npm run lint
2 changes: 1 addition & 1 deletion bin/json-refs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
// Set here so that commander does the right thing
process.stdout.columns = 120;

var JsonRefs = require('..');
var JsonRefs = require('../dist/json-refs.cjs');
var program = require('commander');
var pkg = require('../package.json');
var YAML = require('js-yaml');
Expand Down
14 changes: 0 additions & 14 deletions dist/json-refs-min.js

This file was deleted.

16 changes: 16 additions & 0 deletions dist/json-refs.cjs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"use strict";
// this file might look strange and you might be wondering what it's for
// it's lets you import your source files by importing this entrypoint
// as you would import it if it was built with preconstruct build
// this file is slightly different to some others though
// it has a require hook which compiles your code with Babel
// this means that you don't have to set up @babel/register or anything like that
// but you can still require this module and it'll be compiled

// this bit of code imports the require hook and registers it
let unregister = require("../node_modules/@preconstruct/hook").___internalHook(typeof __dirname === 'undefined' ? undefined : __dirname, "..", "..");

// this re-exports the source file
module.exports = require("../src/index.js");

unregister();
1 change: 1 addition & 0 deletions dist/json-refs.esm.js
Loading