Skip to content

Commit

Permalink
Fix: Loading config throws "Cannot find module", fixed #340
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Apr 25, 2024
1 parent 3ba5147 commit 18bf9e8
Show file tree
Hide file tree
Showing 16 changed files with 426 additions and 432 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
"@google-cloud/storage": "^7.8.0",
"@master/normal.css": "^2.1.1",
"@swc-node/jest": "^1.8.0",
"@techor/fs": "^3.0.18",
"@techor/glob": "^3.0.18",
"@techor/jest-dom": "^3.0.18",
"@techor/repo": "^3.0.18",
"@techor/fs": "^3.0.20",
"@techor/glob": "^3.0.20",
"@techor/jest-dom": "^3.0.20",
"@techor/repo": "^3.0.20",
"@types/node-fetch": "^2.6.11",
"@types/shuffle-array": "^1.0.5",
"cheerio": "1.0.0-rc.12",
Expand All @@ -46,7 +46,7 @@
"shuffle-array": "^1.0.1",
"spawnd": "^9.0.2",
"strip-ansi": "^7.1.0",
"techor": "^3.0.18",
"techor": "^3.0.20",
"tinybench": "^2.6.0",
"ts-dedent": "^2.2.0",
"tsx": "^4.7.1"
Expand Down
8 changes: 4 additions & 4 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@
"@master/css-explore-config": "workspace:^",
"@master/css-extractor": "workspace:^",
"@master/css-server": "workspace:^",
"@techor/extend": "^3.0.18",
"@techor/fs": "^3.0.18",
"@techor/glob": "^3.0.18",
"@techor/log": "^3.0.18",
"@techor/extend": "^3.0.20",
"@techor/fs": "^3.0.20",
"@techor/glob": "^3.0.20",
"@techor/log": "^3.0.20",
"bytes": "^3.1.2",
"chokidar": "^3.6.0",
"commander": "^12.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"dependencies": {
"@master/colors": "^2.0.0",
"@master/normal.css": "^2.1.0",
"@techor/extend": "^3.0.18"
"@techor/extend": "^3.0.20"
},
"devDependencies": {
"@master/css-shared": "workspace:^",
Expand Down
4 changes: 2 additions & 2 deletions packages/create/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"provenance": true
},
"dependencies": {
"@techor/fs": "^3.0.18",
"@techor/log": "^3.0.18",
"@techor/fs": "^3.0.20",
"@techor/log": "^3.0.20",
"commander": "^12.0.0",
"detect-package-manager": "^3.0.1",
"giget": "^1.2.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// import { pathsToModuleNameMapper } from 'ts-jest'
import { getTsconfig } from 'get-tsconfig'
// import { getTsconfig } from 'get-tsconfig'
// import { resolve } from 'path'

// const tsconfig = getTsconfig()?.config
Expand Down
4 changes: 2 additions & 2 deletions packages/explore-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@master/css-shared": "workspace:^"
},
"dependencies": {
"@techor/log": "^3.0.18",
"explore-config": "^3.0.18"
"@techor/log": "^3.0.20",
"explore-config": "^3.0.20"
}
}
7 changes: 7 additions & 0 deletions packages/explore-config/tests/card.css.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Config } from '@master/css'

export default {
styles: {
card: 'inline-flex'
}
} as Config
4 changes: 4 additions & 0 deletions packages/explore-config/tests/master.css.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { Config } from '@master/css'
import card from './card.css'

export default {
extends: [
card
],
styles: {
btn: 'inline-flex'
}
Expand Down
2 changes: 1 addition & 1 deletion packages/extractor.webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"dependencies": {
"@master/css": "workspace:^",
"@master/css-extractor": "workspace:^",
"@techor/log": "^3.0.18",
"@techor/log": "^3.0.20",
"webpack-virtual-modules": "^0.5.0"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions packages/extractor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@
"@master/css": "workspace:^",
"@master/css-validator": "workspace:^",
"@master/css-explore-config": "workspace:^",
"@techor/extend": "^3.0.18",
"@techor/glob": "^3.0.18",
"@techor/log": "^3.0.18",
"@techor/extend": "^3.0.20",
"@techor/glob": "^3.0.20",
"@techor/log": "^3.0.20",
"chokidar": "^3.6.0",
"explore-config": "^3.0.18",
"explore-config": "^3.0.20",
"minimatch": "^9.0.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/language-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@master/css": "workspace:^",
"@master/css-language-service": "workspace:^",
"@master/css-explore-config": "workspace:^",
"@techor/extend": "^3.0.18",
"@techor/extend": "^3.0.20",
"js-beautify": "^1.15.1",
"vscode-languageserver": "^7.0.0",
"vscode-languageserver-textdocument": "^1.0.11"
Expand Down
2 changes: 1 addition & 1 deletion packages/language-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"dependencies": {
"@babel/parser": "^7.24.1",
"@master/css": "workspace:^",
"@techor/extend": "^3.0.18",
"@techor/extend": "^3.0.20",
"color-convert": "^2.0.1",
"color-rgba": "^3.0.0",
"color-space": "^2.0.1",
Expand Down
5 changes: 4 additions & 1 deletion packages/language-service/playground/master.css.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
// todo: Error: Could not dynamically require "@master/css". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.
import { Config } from '@master/css'
import card from './styles/card.css'

export default {
extends: [
card
],
styles: {
btn: `inline-flex text:center`
},
Expand Down
7 changes: 7 additions & 0 deletions packages/language-service/playground/styles/card.css.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Config } from '@master/css'

export default {
styles: {
card: 'inline-flex'
}
} as Config
2 changes: 1 addition & 1 deletion packages/nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@master/css-server": "workspace:^",
"@master/css.vue": "workspace:^",
"@nuxt/kit": "^3.10.3",
"@techor/log": "^3.0.18"
"@techor/log": "^3.0.20"
},
"devDependencies": {
"@master/css-shared": "workspace:^",
Expand Down

0 comments on commit 18bf9e8

Please sign in to comment.