Skip to content

Commit

Permalink
fix(chore): remove package alias for babel.
Browse files Browse the repository at this point in the history
  • Loading branch information
gchoqueux committed Nov 12, 2024
1 parent 0eb463b commit ce73b08
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 18 deletions.
6 changes: 1 addition & 5 deletions packages/Debug/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@
["module-resolver", {
"cwd": "packagejson",
"root": ["./src"],
"extensions": [".js", ".ts", ".tsx"],
"alias": {
"@itowns/geodesy": "../Geodesy/src/Main.js",
"itowns": "../Main/src/Main.js"
}
"extensions": [".js", ".ts", ".tsx"]
}],
["babel-plugin-inline-import", {
"extensions": [
Expand Down
7 changes: 0 additions & 7 deletions packages/Main/.babelrc.cjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
const BABEL_ENV = process.env.BABEL_ENV;

const alias_itowns_geodesy = `../Geodesy/${BABEL_ENV == 'test' ? 'lib' : 'src'}/Main.js`;

module.exports = (api) => {
api.cache(true);
return {
Expand All @@ -19,9 +15,6 @@ module.exports = (api) => {
cwd: 'packagejson',
root: ['./src'],
extensions: [".js", ".ts", ".tsx"],
alias: {
'@itowns/geodesy': alias_itowns_geodesy
}
}],
['babel-plugin-inline-import', {
extensions: [
Expand Down
2 changes: 1 addition & 1 deletion packages/Main/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"scripts": {
"lint": "eslint \"src/**/*.{js,ts,tsx}\" \"test/**/*.js\"",
"transpile": "cross-env BABEL_DISABLE_CACHE=1 babel src --out-dir lib",
"test-unit": "cross-env BABEL_ENV=test npm run base-test-unit test/unit",
"test-unit": "npm run base-test-unit test/unit",
"base-test-unit": "cross-env BABEL_DISABLE_CACHE=1 mocha --timeout 5000 --file test/unit/bootstrap.js --import=../../config/babel-register/register.mjs",
"test-with-coverage": "c8 -n src -r html cross-env npm run test-unit",
"test-with-coverage_lcov": "c8 -n src --reporter=lcov cross-env npm run test-unit",
Expand Down
6 changes: 1 addition & 5 deletions packages/Widget/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@
["module-resolver", {
"cwd": "packagejson",
"root": ["./src"],
"extensions": [".js", ".ts", ".tsx"],
"alias": {
"@itowns/geodesy": "../Geodesy/src/Main.js",
"itowns": "../Main/src/Main.js"
}
"extensions": [".js", ".ts", ".tsx"]
}],
["babel-plugin-inline-import", {
"extensions": [
Expand Down

0 comments on commit ce73b08

Please sign in to comment.