Skip to content

Commit 80640e2

Browse files
committed
chore: update workspace to enforce yarn version
1 parent 5ceeedf commit 80640e2

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ strict-peer-dependencies=false
88
shell-emulator=true
99
auto-install-peers=false
1010
loglevel=error
11+
engine-strict=true
12+

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
yarnPath: .yarn/releases/yarn-3.3.1.cjs

demo-snippets/webpack.config.vue.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ NsVueTemplateCompiler.registerElement('MDTabs', () => require('@nativescript-com
4242
module.exports = (env, webpack) => {
4343
const platform = env && ((env.android && 'android') || (env.ios && 'ios'));
4444
webpack.chainWebpack((config) => {
45-
const symbolsParser = require('../demo-vue/node_modules/scss-symbols-parser');
46-
const mdiSymbols = symbolsParser.parseSymbols(readFileSync(resolve(__dirname, '../demo-vue/node_modules/@mdi/font/scss/_variables.scss')).toString());
45+
const symbolsParser = require('scss-symbols-parser');
46+
const mdiSymbols = symbolsParser.parseSymbols(readFileSync(resolve(__dirname, './node_modules/@mdi/font/scss/_variables.scss')).toString());
4747
const mdiIcons = JSON.parse(`{${mdiSymbols.variables[mdiSymbols.variables.length - 1].value.replace(/" (F|0)(.*?)([,\n]|$)/g, '": "$1$2"$3')}}`);
4848

4949
const scssPrepend = `$mdi-fontFamily: ${platform === 'android' ? 'materialdesignicons-webfont' : 'Material Design Icons'};`;
@@ -56,7 +56,7 @@ module.exports = (env, webpack) => {
5656
.end()
5757
.test(/\.(ts|js|scss|css|vue)$/)
5858
.use('string-replace-loader')
59-
.loader(resolve(__dirname, '../demo-vue/node_modules/string-replace-loader'))
59+
.loader(resolve(__dirname, './node_modules/string-replace-loader'))
6060
.options({
6161
search: 'mdi-([a-z0-9-_]+)',
6262
replace: (match, p1, offset, str) => {
@@ -71,7 +71,7 @@ module.exports = (env, webpack) => {
7171
{
7272
patterns: [
7373
{
74-
from: resolve(__dirname, '../demo-vue/node_modules/@mdi/font/fonts/materialdesignicons-webfont.ttf'),
74+
from: resolve(__dirname, './node_modules/@mdi/font/fonts/materialdesignicons-webfont.ttf'),
7575
to: 'fonts'
7676
}
7777
]

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@nativescript-community/ui-material-components",
33
"description": "Nativescript UI Material Components",
44
"version": "1.0.0",
5+
"private": true,
56
"homepage": "https://github.com/nativescript-community/ui-material-components#readme",
67
"bugs": {
78
"url": "https://github.com/nativescript-community/ui-material-component/issues"
@@ -19,7 +20,7 @@
1920
"build.all.win": "lerna run build.all.win",
2021
"build.angular": "lerna run build.angular",
2122
"clean": "rimraf 'packages/**/*.d.ts' 'packages/**/*.js' 'packages/**/*.js.map' 'packages/**/*.metada' 'packages/**/angular/ng-package.json'",
22-
"fullclean": "npm run clean && rimraf 'packages/**/node_modules' 'demo-*/hooks' 'package-lock.json' 'pnpm-lock.yaml' 'node_modules'",
23+
"fullclean": "npm run clean && rimraf 'packages/**/node_modules' 'demo-*/hooks' 'demo-*/node_modules' 'package-lock.json' 'pnpm-lock.yaml' 'node_modules'",
2324
"commitmsg": "commitlint -e $GIT_PARAMS",
2425
"demo.ng.android": "cd ./demo-ng && ns run android --no-hmr --env.watchNodeModules",
2526
"demo.ng.clean": "cd ./demo-ng && ns clean",
@@ -93,6 +94,8 @@
9394
"engines": {
9495
"npm": "please use yarn or pnpm",
9596
"yarn": ">=1.19.1",
96-
"pnpm": ">=7.0.0"
97-
}
97+
"pnpm": ">=7.0.0",
98+
"node": "^14.20.0 || ^16.13.0 || >=18.10.0"
99+
},
100+
"packageManager": "[email protected]"
98101
}

0 commit comments

Comments
 (0)