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

chore: use root package.json for deps #21

Closed
wants to merge 1 commit into from
Closed
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
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,9 @@
"tslib": "^2.5.3",
"typedoc": "^0.24.8",
"typescript": "4.9.5"
},
"dependencies": {
"chevrotain": "^10.5.0",
"zenroom": "^3.10.0"
}
}
1 change: 0 additions & 1 deletion pkg/deps/chevrotain.ts

This file was deleted.

14 changes: 0 additions & 14 deletions pkg/deps/package.json

This file was deleted.

61 changes: 0 additions & 61 deletions pkg/deps/pnpm-lock.yaml

This file was deleted.

1 change: 0 additions & 1 deletion pkg/deps/zenroom.ts

This file was deleted.

2 changes: 1 addition & 1 deletion pkg/fs/lexer.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { vocab } from './tokens';

import { Lexer } from '@slangroom/deps/chevrotain';
import { Lexer } from 'chevrotain';

const FsLexer = new Lexer(vocab);

Expand Down
1 change: 0 additions & 1 deletion pkg/fs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"repository": "https://github.com/dyne/slangroom",
"license": "AGPL-3.0-only",
"dependencies": {
"@slangroom/deps": "workspace:*",
"@slangroom/shared": "workspace:*",
"@slangroom/ignored": "workspace:*"
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/fs/parser.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { IntoTheFile, SaveThe, Then, And, I, vocab } from './tokens';
import { lex } from './lexer';

import { CstParser, type IToken } from '@slangroom/deps/chevrotain';
import { CstParser, IToken } from 'chevrotain';
import { Identifier } from '@slangroom/shared/tokens';

export type FileOverrideStatementCtx = {
Expand Down
2 changes: 1 addition & 1 deletion pkg/fs/tokens.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Whitespace, Comment, Identifier } from '@slangroom/shared';
import { createToken } from '@slangroom/deps/chevrotain';
import { createToken } from 'chevrotain';

/**
* The "Then" statement.
Expand Down
2 changes: 1 addition & 1 deletion pkg/fs/visitor.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BaseFsVisitor, parse, type FileOverrideStatementCtx } from './parser';

import type { CstNode } from '@slangroom/deps/chevrotain';
import { type CstNode } from 'chevrotain';

export type FileOverrideStatement = {
content: string;
Expand Down
2 changes: 1 addition & 1 deletion pkg/ignored/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { vocab } from './tokens';

import { zencodeExec, type ZenroomParams } from '@slangroom/shared';
import { Lexer } from '@slangroom/deps/chevrotain';
import { Lexer } from 'chevrotain';

const IgnoredLexer = new Lexer(vocab);

Expand Down
1 change: 0 additions & 1 deletion pkg/ignored/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"repository": "https://github.com/dyne/slangroom",
"license": "AGPL-3.0-only",
"dependencies": {
"@slangroom/deps": "workspace:*",
"@slangroom/shared": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion pkg/ignored/tokens.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Whitespace } from '@slangroom/shared';
import { createToken, CustomPatternMatcherFunc } from '@slangroom/deps/chevrotain';
import { createToken, CustomPatternMatcherFunc } from 'chevrotain';

/*
* Prevent regex-ast annoing warnings
Expand Down
2 changes: 1 addition & 1 deletion pkg/shared/gen-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { writeFileSync } from 'fs';
import { resolve } from 'path';
*/
import { generateCstDts, type CstParser } from '@slangroom/deps/chevrotain';
import { generateCstDts, type CstParser } from 'chevrotain';

/**
* Generates typescript types, suitable for a .d.ts file, out of a
Expand Down
5 changes: 1 addition & 4 deletions pkg/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,5 @@
"version": "1.0.0",
"type": "module",
"repository": "https://github.com/dyne/slangroom",
"license": "AGPL-3.0-only",
"dependencies": {
"@slangroom/deps": "workspace:*"
}
"license": "AGPL-3.0-only"
}
2 changes: 1 addition & 1 deletion pkg/shared/tokens.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Whitespace, Identifier, Comment } from './tokens';

import { Lexer, createToken, type IToken } from '@slangroom/deps/chevrotain';
import { Lexer, createToken, type IToken } from 'chevrotain';

const skipped = 'given when then and i that valid all inside am an a'.split(' ');
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
Expand Down
2 changes: 1 addition & 1 deletion pkg/shared/tokens.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Lexer, createToken } from '@slangroom/deps/chevrotain';
import { Lexer, createToken } from 'chevrotain';

/**
* Whitespace of any kind (blanks, tabs, and newlines).
Expand Down
2 changes: 1 addition & 1 deletion pkg/shared/zenroom.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { JsonableObject } from './jsonable';

import { zencode_exec } from '@slangroom/deps/zenroom';
import { zencode_exec } from 'zenroom';

/**
* Output of execution of a contract in Zenroom.
Expand Down
30 changes: 9 additions & 21 deletions pnpm-lock.yaml

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