Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't publish unnecessary files #126

Merged
merged 1 commit into from
May 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
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
10 changes: 10 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Ignore everything
*

# Except for these
!/lib/*.js
!/lib/**/*.js
!CONTRIBUTING.md
!licence.txt
!package.json
!readme.md
48 changes: 25 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/parser/grammars/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ const grammar = fs.readFileSync(`${dir}grammar.pegjs`).toString();
// generate the parser
const parser = pegjs.generate(grammar, { output: 'source' });

const output = `import * as Dice from '../../Dice.js';
import * as Modifiers from '../../Modifiers.js';
import ComparePoint from '../../ComparePoint.js';
import RollGroup from '../../RollGroup.js';
const output = `import * as Dice from '../../Dice';
import * as Modifiers from '../../Modifiers';
import ComparePoint from '../../ComparePoint';
import RollGroup from '../../RollGroup';
import math from 'mathjs-expression-parser';

const parser = ${parser};
Expand Down