Skip to content

Commit b4a7d5f

Browse files
committed
chore: support akylas fork for testing comparaison
1 parent ecdc5cc commit b4a7d5f

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"zone.js": "~0.12.0"
4848
},
4949
"devDependencies": {
50+
"@akylas/nativescript": "~8.4.1",
5051
"@angular-devkit/build-angular": "^14.2.10",
5152
"@angular/compiler-cli": "^14.2.12",
5253
"@nativescript/android": "~8.4.0",

webpack.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ module.exports = (env) => {
3636
}
3737

3838
webpack.chainWebpack((config) => {
39+
if (env.fork) {
40+
const coreModulesPackageName = '@akylas/nativescript';
41+
config.resolve.modules
42+
.clear()
43+
.merge([resolve(__dirname, `node_modules/${coreModulesPackageName}`), resolve(__dirname, 'node_modules'), `node_modules/${coreModulesPackageName}`, 'node_modules']);
44+
config.resolve.alias.merge({
45+
'@nativescript/core': `${coreModulesPackageName}`,
46+
'tns-core-modules': `${coreModulesPackageName}`
47+
});
48+
}
3949
config.resolve.modules.add(resolve(__dirname, '../demo-snippets/node_modules'));
4050
config.plugin('DefinePlugin').tap((args) => {
4151
if (redirect) {

0 commit comments

Comments
 (0)