refactor: Move parsely into top-level packages directory

Parsely was missed by fa7bec3854 because
it got merged afterwards.
This commit is contained in:
Sam Atkins
2024-06-27 15:11:43 +01:00
committed by Eric Dubé
parent 45cdfcb5bf
commit adcd3db0ed
9 changed files with 22 additions and 6 deletions
+8
View File
@@ -707,6 +707,10 @@
"form-data": "^4.0.0"
}
},
"node_modules/@heyputer/parsely": {
"resolved": "packages/parsely",
"link": true
},
"node_modules/@heyputer/phoenix": {
"resolved": "packages/phoenix",
"link": true
@@ -12205,6 +12209,10 @@
}
]
},
"packages/parsely": {
"version": "1.0.0",
"license": "AGPL-3.0-only"
},
"packages/phoenix": {
"name": "@heyputer/phoenix",
"version": "0.0.0",
+8
View File
@@ -0,0 +1,8 @@
{
"name": "@heyputer/parsely",
"version": "1.0.0",
"author": "Puter Technologies Inc.",
"license": "AGPL-3.0-only",
"main": "exports.js",
"type": "module"
}
@@ -1,6 +1,6 @@
import { GrammarContext, standard_parsers } from '../../../packages/parsely/exports.js';
import { Parser, UNRECOGNIZED, VALUE } from '../../../packages/parsely/parser.js';
import { StringStream } from '../../../packages/parsely/streams.js';
import { GrammarContext, standard_parsers } from '@heyputer/parsely/exports.js';
import { Parser, UNRECOGNIZED, VALUE } from '@heyputer/parsely/parser.js';
import { StringStream } from '@heyputer/parsely/streams.js';
class NumberParser extends Parser {
static data = {
@@ -39,9 +39,9 @@ import {
ZapCommand,
} from './command.js';
import { Script } from './script.js';
import { GrammarContext, standard_parsers } from '../../../../packages/parsely/exports.js';
import { StringStream } from '../../../../packages/parsely/streams.js';
import { INVALID, Parser, UNRECOGNIZED, VALUE } from '../../../../packages/parsely/parser.js';
import { GrammarContext, standard_parsers } from '@heyputer/parsely/exports.js';
import { StringStream } from '@heyputer/parsely/streams.js';
import { Parser, UNRECOGNIZED, VALUE } from '@heyputer/parsely/parser.js';
/**
* A slight hack: Parsely doesn't yet have an equivalent of backreferences.