Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing webpack "Import trace for requested module" #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

out/
.turbo
# VisualStudioCode.gitignore
# See https://github.com/github/gitignore/blob/master/Global/VisualStudioCode.gitignore
Expand Down Expand Up @@ -69,13 +70,12 @@ buck-out/
android/app/libs
android/keystores/debug.keystore

lib/
webpack-assets.json
webpack-stats.json
*.swp

# Modern Relay
__generated__
lib

/logs/
.idea/workspace.xml
9 changes: 6 additions & 3 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .idea/powership.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "powership",
"version": "2.0.2",
"version": "2.0.4",
"private": true,
"scripts": {
"pack": "run-s pack:*",
Expand All @@ -13,7 +13,7 @@
"i": "rm -rf node_modules/.pnpm && rm -rf pnpm-lock.yaml && pnpm install",
"clear": "run-s clear:* && pnpm install",
"clear:root": "rm -rf node_modules *-lock.yaml *-lock.json",
"clear:packages": "run \"rm -rf node_modules *-lock.yaml *-lock.json\" lib"
"clear:packages": "run \"rm -rf node_modules *-lock.yaml *-lock.json\" out"
},
"devDependencies": {
"@powership/babel-plugins": "workspace:*",
Expand Down
14 changes: 7 additions & 7 deletions packages/accounts/package.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
{
"name": "@powership/accounts",
"version": "2.0.2",
"version": "2.0.4",
"description": "Powership accounts",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"main": "out/index.js",
"typings": "out/index.d.ts",
"sideEffects": false,
"license": "MIT",
"scripts": {
"test": "jest",
"build": "run-s clear && run-p declarations build:*",
"clear": "rimraf lib",
"clear": "rimraf out",
"fix": "run-s fix:* ",
"fix:prettier": "prettier \"src/**/*.ts\" --write",
"fix:lint": "eslint src --ext .ts --fix",
"prepublishOnly": "run-s build fix && run-p test",
"build-targets": "run-p build:*",
"build:node": "TARGET=node npm run babild -- --out-dir lib",
"build:module-node": "TARGET=module-node npm run babild -- --out-dir lib/module",
"build:node": "TARGET=node npm run babild -- --out-dir out",
"build:module-node": "TARGET=module-node npm run babild -- --out-dir out/module",
"declarations": "tsc -p tsconfig.declarations.json",
"babild": "babel 'src' --extensions '.ts,.tsx'"
},
"files": [
"package.json",
"lib/*",
"out/*",
"README.md"
],
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/accounts/src/__tests__/AccountToken.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AppMock, createAppMock } from '@powership/mongo/lib/test-utils';
import { AppMock, createAppMock } from '@powership/mongo/out/test-utils';

import { Token } from '../types/TokenType';

Expand Down
2 changes: 1 addition & 1 deletion packages/accounts/src/__tests__/Accounts.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { MongoTransporter } from '@powership/mongo';
import { AppMock, createAppMock } from '@powership/mongo/lib/test-utils';
import { AppMock, createAppMock } from '@powership/mongo/out/test-utils';
import { LoaderContext } from '@powership/transporter';

import { SessionRequest } from '../Sessions';
Expand Down
2 changes: 1 addition & 1 deletion packages/accounts/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"outDir": "lib",
"outDir": "out",
"rootDir": "src",
"paths": {},
"baseUrl": ".",
Expand Down
2 changes: 1 addition & 1 deletion packages/accounts/tsconfig.module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "./tsconfig.prod.json",
"compilerOptions": {
"target": "esnext",
"outDir": "lib/module",
"outDir": "out/module",
"module": "esnext",
"noUnusedLocals": true,
"noUnusedParameters": true
Expand Down
10 changes: 5 additions & 5 deletions packages/babel-plugins/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@powership/babel-plugins",
"version": "2.0.2",
"main": "lib",
"version": "2.0.4",
"main": "out",
"sideEffects": false,
"typings": "lib",
"typings": "out",
"author": "antoniopresto <[email protected]>",
"license": "MIT",
"scripts": {
"test": "echo ok",
"build": "rm -rf lib && tsc && tsc -p tsconfig.module.json",
"build": "rm -rf out && tsc && tsc -p tsconfig.module.json",
"prepublishOnly": "npm run fix && npm run build",
"build-targets": "run-p build",
"fix": "run-s fix:*",
Expand Down Expand Up @@ -39,7 +39,7 @@
},
"files": [
"package.json",
"lib/*",
"out/*",
"README.md"
],
"prettier": {
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugins/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"outDir": "lib",
"outDir": "out",
"rootDir": "src",
"paths": {},
"baseUrl": ".",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugins/tsconfig.module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "./tsconfig.prod.json",
"compilerOptions": {
"target": "esnext",
"outDir": "lib/module",
"outDir": "out/module",
"module": "esnext",
"noUnusedLocals": true,
"noUnusedParameters": true
Expand Down
8 changes: 4 additions & 4 deletions packages/boilerplate/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@powership/boilerplate",
"version": "2.0.2",
"main": "lib/index.js",
"module": "lib/module/index.js",
"version": "2.0.4",
"main": "out/index.js",
"module": "out/module/index.js",
"author": "antoniopresto <[email protected]>",
"sideEffects": false,
"scripts": {
Expand Down Expand Up @@ -31,7 +31,7 @@
},
"files": [
"package.json",
"lib/*",
"out/*",
"README.md"
]
}
2 changes: 1 addition & 1 deletion packages/boilerplate/tsconfig/module.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"extends": "./tsconfig.prod.json",
"compilerOptions": {
"target": "esnext",
"outDir": "lib/module",
"outDir": "out/module",
"module": "esnext",
"noUnusedLocals": true,
"noUnusedParameters": true
Expand Down
22 changes: 11 additions & 11 deletions packages/deepstate/package.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
{
"name": "@powership/deepstate",
"version": "2.0.2",
"main": "lib/index.js",
"module": "lib/module/index.js",
"version": "2.0.4",
"main": "out/index.js",
"module": "out/module/index.js",
"sideEffects": false,
"browser": {
"lib/module/index.js": "./lib/browser/module/index.js",
"lib/index.js": "./lib/browser/index.js"
"out/module/index.js": "./out/browser/module/index.js",
"out/index.js": "./out/browser/index.js"
},
"author": "antoniopresto <[email protected]>",
"license": "MPL-2.0",
"scripts": {
"test": "jest",
"ts": "tsc --noEmit",
"build": "run-s clear && run-p declarations build:*",
"clear": "rimraf lib",
"clear": "rimraf out",
"fix": "run-s fix:* ",
"fix:prettier": "prettier \"src/**/*.ts\" --write",
"fix:lint": "eslint src --ext .ts --fix",
"prepublishOnly": "run-p build fix && run-p test",
"build-targets": "run-p build:*",
"build:browser": "TARGET=browser npm run babild -- --out-dir lib/browser",
"build:module-browser": "TARGET=module-browser npm run babild -- --out-dir lib/browser/module",
"build:node": "TARGET=node npm run babild -- --out-dir lib",
"build:module-node": "TARGET=module-node npm run babild -- --out-dir lib/module",
"build:browser": "TARGET=browser npm run babild -- --out-dir out/browser",
"build:module-browser": "TARGET=module-browser npm run babild -- --out-dir out/browser/module",
"build:node": "TARGET=node npm run babild -- --out-dir out",
"build:module-node": "TARGET=module-node npm run babild -- --out-dir out/module",
"declarations": "tsc -p tsconfig.declarations.json",
"babild": "babel 'src' --extensions '.ts,.tsx' --source-maps=true --ignore '**/__tests__'"
},
Expand Down Expand Up @@ -74,7 +74,7 @@
},
"files": [
"package.json",
"lib/*",
"out/*",
"README.md"
]
}
2 changes: 1 addition & 1 deletion packages/deepstate/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"outDir": "lib",
"outDir": "out",
"rootDir": "src",
"paths": {},
"baseUrl": ".",
Expand Down
2 changes: 1 addition & 1 deletion packages/deepstate/tsconfig.module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "./tsconfig.prod.json",
"compilerOptions": {
"target": "esnext",
"outDir": "lib/module",
"outDir": "out/module",
"module": "esnext",
"noUnusedLocals": true,
"noUnusedParameters": true
Expand Down
14 changes: 7 additions & 7 deletions packages/entity/package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"name": "@powership/entity",
"version": "2.0.2",
"main": "lib/index.js",
"module": "lib/module/index.js",
"version": "2.0.4",
"main": "out/index.js",
"module": "out/module/index.js",
"author": "antoniopresto <[email protected]>",
"license": "MIT",
"sideEffects": false,
"scripts": {
"test": "jest",
"build": "run-s clear && run-p declarations build:*",
"clear": "rimraf lib",
"clear": "rimraf out",
"fix": "run-s fix:* ",
"fix:prettier": "prettier \"src/**/*.ts\" --write",
"fix:lint": "eslint src --ext .ts --fix",
"prepublishOnly": "run-s build fix && run-p test",
"build-targets": "run-p build:*",
"build:node": "TARGET=node npm run babild -- --out-dir lib",
"build:module-node": "TARGET=module-node npm run babild -- --out-dir lib/module",
"build:node": "TARGET=node npm run babild -- --out-dir out",
"build:module-node": "TARGET=module-node npm run babild -- --out-dir out/module",
"declarations": "tsc -p tsconfig.declarations.json",
"babild": "babel 'src' --extensions '.ts,.tsx'"
},
Expand Down Expand Up @@ -75,7 +75,7 @@
},
"files": [
"package.json",
"lib/*",
"out/*",
"README.md"
],
"typedoc": {
Expand Down
2 changes: 1 addition & 1 deletion packages/entity/src/__tests__/Aliases.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { MongoTransporter } from '@powership/mongo';
import { AppMock, createAppMock } from '@powership/mongo/lib/test-utils';
import { AppMock, createAppMock } from '@powership/mongo/out/test-utils';
import { createSchema, createType, Infer, ULID_REGEX } from '@powership/schema';
import { tupleEnum } from '@powership/utils';

Expand Down
10 changes: 7 additions & 3 deletions packages/entity/src/__tests__/Product.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { MongoTransporter } from '@powership/mongo';
import { AppMock, createAppMock } from '@powership/mongo/lib/test-utils';
import { createType, ObjectType, parseField } from '@powership/schema';
import { ULID_REGEX } from '@powership/schema/lib/fields/ULIDField';
import { AppMock, createAppMock } from '@powership/mongo/out/test-utils';
import {
createType,
ObjectType,
parseField,
ULID_REGEX,
} from '@powership/schema';

import { createEntity } from '../Entity';

Expand Down
2 changes: 1 addition & 1 deletion packages/entity/src/__tests__/ProductResolver.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CircularDeps, createResolver, Infer } from '@powership/schema';
import { createGraphQLSchema } from '@powership/schema/lib/createGraphQLSchema';
import { createGraphQLSchema } from '@powership/schema/out/createGraphQLSchema';
import { PaginationResult } from '@powership/transporter';
import { notNull, NullableToPartial, PromiseType } from '@powership/utils';
import { assert, IsExact } from 'conditional-type-checks';
Expand Down
2 changes: 1 addition & 1 deletion packages/entity/src/__tests__/mockApp.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { MongoTransporter } from '@powership/mongo';
import { AppMock, createAppMock } from '@powership/mongo/lib/test-utils';
import { AppMock, createAppMock } from '@powership/mongo/out/test-utils';
import { ObjectType } from '@powership/schema';

export function mockApp() {
Expand Down
2 changes: 1 addition & 1 deletion packages/entity/src/__tests__/setupProductTest.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { MongoTransporter } from '@powership/mongo';
import { AppMock, createAppMock } from '@powership/mongo/lib/test-utils';
import { AppMock, createAppMock } from '@powership/mongo/out/test-utils';
import {
createResolver,
createSchema,
Expand Down
2 changes: 1 addition & 1 deletion packages/entity/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"outDir": "lib",
"outDir": "out",
"rootDir": "src",
"paths": {},
"baseUrl": ".",
Expand Down
Loading