Skip to content
This repository was archived by the owner on Aug 7, 2020. It is now read-only.

Commit a2cf5dd

Browse files
Axel PeterAxelPeter
Axel Peter
authored andcommitted
chore: restore webpack alias
1 parent 3f2b645 commit a2cf5dd

File tree

4 files changed

+37
-479
lines changed

4 files changed

+37
-479
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ insert_final_newline = true
1919

2020
[*.js]
2121
indent_style = space
22-
indent_size = 2
22+
indent_size = 4
2323

2424
[*.less]
2525
indent_style = space

build/webpack.base.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const formatter = require("eslint-friendly-formatter");
22
const webpack = require("webpack");
3+
const path = require("path");
34
const LodashModuleReplacementPlugin = require("lodash-webpack-plugin");
45

56
const exclude = [/node_modules/, /dist/];
@@ -18,6 +19,15 @@ module.exports = {
1819
paths: true
1920
})
2021
],
22+
23+
// To be removed when using yarn workspaces
24+
resolve: {
25+
alias: {
26+
"@ovh-ui": path.resolve(__dirname, "../packages"),
27+
flatpickr: path.resolve(__dirname, "../node_modules/flatpickr")
28+
},
29+
mainFiles: ["index", "src/index"]
30+
},
2131
module: {
2232
rules: [
2333
{

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "ovh-ui-angular",
33
"description": "A set of maintainable components for the OVH ecosystem (Angular).",
4-
"private": true,
54
"license": "BSD-3-Clause",
65
"author": "OVH SAS",
76
"version": "2.20.2",
@@ -39,6 +38,10 @@
3938
"angular": ">=1.6.x",
4039
"angular-aria": ">=1.6.x",
4140
"angular-sanitize": ">=1.6.x",
41+
"clipboard": "^2.0.1",
42+
"escape-string-regexp": "^1.0.5",
43+
"flatpickr": "^4.5.2",
44+
"popper.js": "^1.14.4",
4245
"ovh-ui-kit": "^2.20.0"
4346
},
4447
"devDependencies": {
@@ -100,9 +103,6 @@
100103
"peerDependencies": {
101104
"ovh-ui-kit": "*"
102105
},
103-
"workspaces": [
104-
"packages/*"
105-
],
106106
"engines": {
107107
"node": ">= 6.9.0",
108108
"npm": ">= 3.10.0",

0 commit comments

Comments
 (0)