Skip to content

Commit

Permalink
Merge branch 'release-2.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
jsconan committed Apr 21, 2023
2 parents 052cac3 + 7867238 commit 3e6fccc
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 2,143 deletions.
15 changes: 5 additions & 10 deletions build/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,15 @@ const { srcDir, outputDir } = require('./path');
const isDev = process.env.NODE_ENV === 'development';

const globPath = p => p.replace(/\\/g, '/');
const removeExt = p => p.replace(/\.js$/, '');
const inputs = glob.sync(globPath(path.join(srcDir, '**', '*.js')));

const localExternals = inputs.map(input => (
path
.relative(srcDir, input)
.replace(/\\/g, '/')
.replace(/\.js$/, '')
));
const localExternals = inputs.map(input => removeExt(globPath(path.relative(srcDir, input))));

export default inputs.map(input => {
const name = path.relative(srcDir, input).replace(/\.js$/, '');
const dir = path.dirname(path.relative(srcDir, input));
const relative = path.relative(srcDir, input);
const name = removeExt(relative);
const dir = path.dirname(relative);

return {
input,
Expand All @@ -62,8 +59,6 @@ export default inputs.map(input => {
'i18n',
'jquery',
'jquery.fileDownload',
'lib/decimal/decimal',
'lib/expr-eval/expr-eval',
'lib/uuid',
'lodash',
'module',
Expand Down
20 changes: 4 additions & 16 deletions package-lock.json

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

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oat-sa/tao-core-sdk",
"version": "1.23.0",
"version": "2.0.0",
"displayName": "TAO Core SDK",
"description": "Core libraries of TAO",
"homepage": "https://github.com/oat-sa/tao-core-sdk-fe#readme",
Expand Down Expand Up @@ -45,12 +45,10 @@
"@babel/preset-env": "^7.19.4",
"@oat-sa/browserslist-config-tao": "^1.0.1",
"@oat-sa/eslint-config-tao": "^1.1.1",
"@oat-sa/expr-eval": "^1.3.1",
"@oat-sa/prettier-config": "^0.1.1",
"@oat-sa/tao-core-libs": "^0.5.1",
"@oat-sa/tao-core-libs": "^0.5.2",
"@oat-sa/tao-qunit-testrunner": "1.0.3",
"async": "^0.2.10",
"decimal.js": "10.1.1",
"dompurify": "^2.4.0",
"eslint": "^8.25.0",
"eslint-plugin-es": "^4.1.0",
Expand Down
Loading

0 comments on commit 3e6fccc

Please sign in to comment.