Skip to content
Open
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
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ jobs:
node-version: 14
- run: npm ci
- run: npm run compile
- run: npm run compile:esm
- run: npm test
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"name": "Microsoft Corporation"
},
"main": "./release/main.js",
"module": "./release/esm/main.js",
"typings": "./release/main.d.ts",
"repository": {
"type": "git",
Expand All @@ -18,13 +19,14 @@
"scripts": {
"watch": "tsc --watch",
"compile": "tsc",
"compile:esm": "tsc -b ./tsconfig.esm.json",
"test": "mocha --ui=tdd ./out/tests/all.test.js",
"benchmark": "node benchmark/benchmark.js",
"inspect": "node out/tests/inspect.js",
"tmconvert": "node scripts/tmconvert.js",
"version": "npm run compile && npm run test",
"postversion": "git push && git push --tags",
"prepublishOnly": "tsc && webpack --progress",
"prepublishOnly": "tsc && tsc -b ./tsconfig.esm.json && webpack --progress",
"bundle": "webpack"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/diffStateStacks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/

import { StateStackImpl, StateStackFrame } from "./grammar";
import { StateStackImpl, StateStackFrame } from "./grammar/index";
import { StateStack } from "./main";

export function diffStateStacksRefEq(first: StateStack, second: StateStack): StackDiff {
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/

import { BalancedBracketSelectors, StateStackImpl } from './grammar';
import { BalancedBracketSelectors, StateStackImpl } from './grammar/index';
import * as grammarReader from './parseRawGrammar';
import { IOnigLib } from './onigLib';
import { IRawGrammar } from './rawGrammar';
Expand Down
2 changes: 1 addition & 1 deletion src/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/

import { BalancedBracketSelectors, createGrammar, Grammar, IGrammarRepository, IThemeProvider, AttributedScopeStack } from './grammar';
import { BalancedBracketSelectors, createGrammar, Grammar, IGrammarRepository, IThemeProvider, AttributedScopeStack } from './grammar/index';
import { IRawGrammar } from './rawGrammar';
import { IGrammar, IEmbeddedLanguagesMap, ITokenTypeMap } from './main';
import { ScopeStack, Theme, StyleAttributes, ThemeTrieElementRule, ScopeName } from './theme';
Expand Down
2 changes: 1 addition & 1 deletion src/tests/inspect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import * as fs from 'fs';
import { Registry, IGrammar, parseRawGrammar } from '../main';
import { StateStackImpl as StackElementImpl, Grammar as GrammarImpl } from '../grammar';
import { StateStackImpl as StackElementImpl, Grammar as GrammarImpl } from '../grammar/index';
import * as debug from '../debug';
import { getOniguruma } from './onigLibs';

Expand Down
8 changes: 8 additions & 0 deletions tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "ES2020",
"outDir": "release/esm",
"sourceMap": false
}
}