Skip to content

Commit 85366be

Browse files
fix(utils): fix browser build for concerto-util (#970)
* chore(actions): publish v3.20.1 to npm Signed-off-by: GitHub <[email protected]> * fix(utils): fix browser build for concerto-util Signed-off-by: sanketshevkar <[email protected]> * fix(utils): fix browser build for concerto-util Signed-off-by: sanketshevkar <[email protected]> * fix(utils): fix browser build for concerto-util Signed-off-by: sanketshevkar <[email protected]> --------- Signed-off-by: GitHub <[email protected]> Signed-off-by: sanketshevkar <[email protected]> Co-authored-by: mttrbrts <[email protected]>
1 parent 05a97e5 commit 85366be

File tree

9 files changed

+1275
-1565
lines changed

9 files changed

+1275
-1565
lines changed

package-lock.json

+1,151-1,455
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
],
2222
"name": "concerto",
2323
"description": "Define and introspect data models",
24-
"version": "3.19.9",
24+
"version": "3.20.1",
2525
"private": true,
2626
"scripts": {
2727
"coverage": "node ./scripts/coverage.js \"packages/concerto-*\" && nyc report -t coverage --cwd . --report-dir coverage --reporter=lcov && cat ./coverage/lcov.info",
+46-46
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
11
{
2-
"name": "@accordproject/concerto-analysis",
3-
"version": "3.19.9",
4-
"description": "Analysis of Concerto model files",
5-
"homepage": "https://github.com/accordproject/concerto",
6-
"engines": {
7-
"node": ">=18",
8-
"npm": ">=10"
9-
},
10-
"main": "dist/index.js",
11-
"typings": "dist/index.d.ts",
12-
"scripts": {
13-
"clean": "rimraf dist",
14-
"prebuild": "npm-run-all clean",
15-
"build": "tsc -p tsconfig.build.json",
16-
"pretest": "npm-run-all lint",
17-
"lint": "eslint .",
18-
"test": "jest",
19-
"test:watch": "jest --watchAll"
20-
},
21-
"repository": {
22-
"type": "git",
23-
"url": "https://github.com/accordproject/concerto.git",
24-
"directory": "packages/concerto-analysis"
25-
},
26-
"keywords": [
27-
"concerto",
28-
"tools",
29-
"modeling"
30-
],
31-
"author": "accordproject.org",
32-
"license": "Apache-2.0",
33-
"dependencies": {
34-
"@accordproject/concerto-core": "3.19.6",
35-
"semver": "7.6.3"
36-
},
37-
"devDependencies": {
38-
"@accordproject/concerto-cto": "3.19.6",
39-
"@types/semver": "7.5.8",
40-
"@typescript-eslint/eslint-plugin": "8.16.0",
41-
"@typescript-eslint/parser": "8.16.0",
42-
"eslint": "8.57.1",
43-
"jest": "^29.7.0",
44-
"npm-run-all": "4.1.5",
45-
"ts-jest": "^29.2.5",
46-
"typescript": "^5.7.2"
47-
}
2+
"name": "@accordproject/concerto-analysis",
3+
"version": "3.20.1",
4+
"description": "Analysis of Concerto model files",
5+
"homepage": "https://github.com/accordproject/concerto",
6+
"engines": {
7+
"node": ">=18",
8+
"npm": ">=10"
9+
},
10+
"main": "dist/index.js",
11+
"typings": "dist/index.d.ts",
12+
"scripts": {
13+
"clean": "rimraf dist",
14+
"prebuild": "npm-run-all clean",
15+
"build": "tsc -p tsconfig.build.json",
16+
"pretest": "npm-run-all lint",
17+
"lint": "eslint .",
18+
"test": "jest",
19+
"test:watch": "jest --watchAll"
20+
},
21+
"repository": {
22+
"type": "git",
23+
"url": "https://github.com/accordproject/concerto.git",
24+
"directory": "packages/concerto-analysis"
25+
},
26+
"keywords": [
27+
"concerto",
28+
"tools",
29+
"modeling"
30+
],
31+
"author": "accordproject.org",
32+
"license": "Apache-2.0",
33+
"dependencies": {
34+
"@accordproject/concerto-core": "3.20.1",
35+
"semver": "7.6.3"
36+
},
37+
"devDependencies": {
38+
"@accordproject/concerto-cto": "3.20.1",
39+
"@types/semver": "7.5.8",
40+
"@typescript-eslint/eslint-plugin": "8.16.0",
41+
"@typescript-eslint/parser": "8.16.0",
42+
"eslint": "8.57.1",
43+
"jest": "^29.7.0",
44+
"npm-run-all": "4.1.5",
45+
"ts-jest": "^29.2.5",
46+
"typescript": "^5.7.2"
47+
}
4848
}

packages/concerto-core/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@accordproject/concerto-core",
3-
"version": "3.19.9",
3+
"version": "3.20.1",
44
"description": "Core Implementation for the Concerto Modeling Language",
55
"homepage": "https://github.com/accordproject/concerto",
66
"engines": {
@@ -64,9 +64,9 @@
6464
"yargs": "17.7.2"
6565
},
6666
"dependencies": {
67-
"@accordproject/concerto-cto": "3.19.6",
67+
"@accordproject/concerto-cto": "3.20.1",
6868
"@accordproject/concerto-metamodel": "3.10.4",
69-
"@accordproject/concerto-util": "3.19.6",
69+
"@accordproject/concerto-util": "3.20.1",
7070
"dayjs": "1.11.13",
7171
"debug": "4.3.7",
7272
"lorem-ipsum": "2.0.8",

packages/concerto-cto/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@accordproject/concerto-cto",
3-
"version": "3.19.9",
3+
"version": "3.20.1",
44
"description": "Parser for Concerto CTO files",
55
"homepage": "https://github.com/accordproject/concerto",
66
"engines": {
@@ -45,14 +45,15 @@
4545
"eslint": "8.57.1",
4646
"jsdoc": "^4.0.4",
4747
"mocha": "10.8.2",
48+
"node-polyfill-webpack-plugin": "4.0.0",
4849
"nyc": "17.1.0",
4950
"peggy": "4.2.0",
5051
"sinon": "19.0.2",
5152
"typescript": "5.7.2"
5253
},
5354
"dependencies": {
5455
"@accordproject/concerto-metamodel": "3.10.4",
55-
"@accordproject/concerto-util": "3.19.6"
56+
"@accordproject/concerto-util": "3.20.1"
5657
},
5758
"browserslist": "> 0.25%, not dead",
5859
"nyc": {

packages/concerto-cto/webpack.config.js

+15-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
let path = require('path');
1818
const webpack = require('webpack');
19+
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
1920

2021
const packageJson = require('./package.json');
2122

@@ -45,6 +46,7 @@ module.exports = {
4546
'NODE_ENV': JSON.stringify('production')
4647
}
4748
}),
49+
new NodePolyfillPlugin(),
4850
],
4951
module: {
5052
rules: [
@@ -64,7 +66,18 @@ module.exports = {
6466
// Webpack 5 no longer polyfills Node.js core modules automatically.
6567
// see https://webpack.js.org/configuration/resolve/#resolvefallback
6668
// for the list of Node.js core module polyfills.
67-
'path': 'path-browserify'
69+
'fs': false,
70+
'tls': false,
71+
'net': false,
72+
'child_process': false,
73+
'os': false,
74+
'path': false,
75+
// 'crypto': require.resolve('crypto-browserify'),
76+
// 'stream': require.resolve('stream-browserify'),
77+
// 'http': require.resolve('stream-http'),
78+
// 'https': require.resolve('https-browserify'),
79+
// 'zlib': require.resolve('browserify-zlib'),
80+
// 'vm2': require.resolve('vm-browserify'),
6881
}
6982
}
70-
};
83+
};

packages/concerto-types/package.json

+53-53
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
11
{
2-
"name": "@accordproject/concerto-types",
3-
"version": "3.19.9",
4-
"description": "Types for the Concerto Modeling Language",
5-
"homepage": "https://github.com/accordproject/concerto",
6-
"engines": {
7-
"node": ">=18",
8-
"npm": ">=10"
9-
},
10-
"main": "dist/index.js",
11-
"typings": "dist/index.d.ts",
12-
"scripts": {
13-
"clean": "rimraf src/generated dist",
14-
"codegen": "node scripts/codegen.js",
15-
"prebuild": "npm-run-all clean codegen",
16-
"build": "tsc",
17-
"pretest": "npm-run-all prebuild lint",
18-
"lint": "eslint .",
19-
"test": "jest --passWithNoTests",
20-
"test:watch": "jest --watchAll"
21-
},
22-
"repository": {
23-
"type": "git",
24-
"url": "https://github.com/accordproject/concerto.git",
25-
"directory": "packages/concerto-types"
26-
},
27-
"keywords": [
28-
"concerto",
29-
"tools",
30-
"modeling"
2+
"name": "@accordproject/concerto-types",
3+
"version": "3.20.1",
4+
"description": "Types for the Concerto Modeling Language",
5+
"homepage": "https://github.com/accordproject/concerto",
6+
"engines": {
7+
"node": ">=18",
8+
"npm": ">=10"
9+
},
10+
"main": "dist/index.js",
11+
"typings": "dist/index.d.ts",
12+
"scripts": {
13+
"clean": "rimraf src/generated dist",
14+
"codegen": "node scripts/codegen.js",
15+
"prebuild": "npm-run-all clean codegen",
16+
"build": "tsc",
17+
"pretest": "npm-run-all prebuild lint",
18+
"lint": "eslint .",
19+
"test": "jest --passWithNoTests",
20+
"test:watch": "jest --watchAll"
21+
},
22+
"repository": {
23+
"type": "git",
24+
"url": "https://github.com/accordproject/concerto.git",
25+
"directory": "packages/concerto-types"
26+
},
27+
"keywords": [
28+
"concerto",
29+
"tools",
30+
"modeling"
31+
],
32+
"author": "accordproject.org",
33+
"license": "Apache-2.0",
34+
"devDependencies": {
35+
"@accordproject/concerto-codegen": "3.30.1",
36+
"@accordproject/concerto-core": "3.20.1",
37+
"@accordproject/concerto-util": "3.20.1",
38+
"eslint": "8.57.1",
39+
"jest": "29.7.0",
40+
"npm-run-all": "4.1.5",
41+
"rimraf": "6.0.1",
42+
"ts-jest": "29.2.5"
43+
},
44+
"jest": {
45+
"preset": "ts-jest",
46+
"testEnvironment": "node",
47+
"testPathIgnorePatterns": [
48+
"<rootDir>/dist/",
49+
"/node_modules/"
3150
],
32-
"author": "accordproject.org",
33-
"license": "Apache-2.0",
34-
"devDependencies": {
35-
"@accordproject/concerto-codegen": "3.30.1",
36-
"@accordproject/concerto-core": "3.19.6",
37-
"@accordproject/concerto-util": "3.19.6",
38-
"eslint": "8.57.1",
39-
"jest": "29.7.0",
40-
"npm-run-all": "4.1.5",
41-
"rimraf": "6.0.1",
42-
"ts-jest": "29.2.5"
43-
},
44-
"jest": {
45-
"preset": "ts-jest",
46-
"testEnvironment": "node",
47-
"testPathIgnorePatterns": [
48-
"<rootDir>/dist/",
49-
"/node_modules/"
50-
],
51-
"collectCoverage": true,
52-
"collectCoverageFrom": [
53-
"src/**/*.ts"
54-
]
55-
}
51+
"collectCoverage": true,
52+
"collectCoverageFrom": [
53+
"src/**/*.ts"
54+
]
55+
}
5656
}

packages/concerto-util/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@accordproject/concerto-util",
3-
"version": "3.19.9",
3+
"version": "3.20.1",
44
"description": "Utilities for Concerto Modeling Language",
55
"homepage": "https://github.com/accordproject/concerto",
66
"engines": {

packages/concerto-vocabulary/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@accordproject/concerto-vocabulary",
3-
"version": "3.19.9",
3+
"version": "3.20.1",
44
"description": "Associate human-readable text to model declarations",
55
"homepage": "https://github.com/accordproject/concerto",
66
"engines": {
@@ -34,7 +34,7 @@
3434
"author": "accordproject.org",
3535
"license": "Apache-2.0",
3636
"devDependencies": {
37-
"@accordproject/concerto-core": "3.19.6",
37+
"@accordproject/concerto-core": "3.20.1",
3838
"chai": "4.3.6",
3939
"chai-as-promised": "7.1.1",
4040
"chai-things": "0.2.0",

0 commit comments

Comments
 (0)