Skip to content

Commit

Permalink
update config
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni committed Jan 10, 2024
1 parent 649bbe2 commit f9e72af
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ node_modules
/esm
/cjs
/browser
/browser_new
*.tgz
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,20 @@
"/esm",
"/cjs",
"/browser",
"/browser_new",
"LICENSE",
"README.md"
],
"scripts": {
"build": "npm run build:esm && npm run build:cjs && npm run build:browser",
"build": "npm run build:esm && npm run build:cjs && npm run build:browser && npm run build:browser_new",
"build:esm": "tsc",
"build:cjs": "tsc --project ./tsconfig.cjs.json",
"build:browser": "webpack",
"build:browser_new": "webpack --config ./webpack_new.config.js",
"test": "npm run test:unit && npm run test:browser",
"test:unit": "cross-env CI=true jest --coverage --testPathIgnorePatterns=test/browser/*",
"test:browser": "npm run build:browser && cross-env CI=true jest -- ./test/browser/*",
"test:browser_new": "npm run build:browser_new && cross-env CI=true jest -- ./test/browser_new/*",
"lint": "eslint --max-warnings 0 --config .eslintrc .",
"lint:fix": "eslint --max-warnings 0 --config .eslintrc . --fix",
"generate:readme:toc": "markdown-toc -i \"README.md\"",
Expand Down
4 changes: 2 additions & 2 deletions test/browser/browser.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('Test browser Parser in the node env', function() {

afterAll(async function() {
await browser.close();
await server.close();
server.close();
});

it('should parse spec in the browser', async function() {
Expand All @@ -58,4 +58,4 @@ describe('Test browser Parser in the node env', function() {
const diagnostics = await page.evaluate(element => element && element.textContent, diagnosticsDiv);
expect(Number(diagnostics)).toBeGreaterThanOrEqual(0);
}, 5000);
});
});
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module.exports = {
library: {
name: 'AsyncAPIParser',
type: 'umd',
export: 'default'
},
},

Expand Down

0 comments on commit f9e72af

Please sign in to comment.