commerce/tsconfig.json
Gary Borton a6babd93d5
Default tsconfig framework path to local. (#644)
Testing locally it seems that `local` is what's used when there aren't any environment variables configured.

I'm making this change because `live` doesn't currently support `fs` functions and therefore cannot update the `paths[@framework]` in next.config.js.  This means deploying the commerce template from `vercel.com/live` generates an error instead of displaying the commerce page as would be displayed when running `npm run dev` locally.
2022-01-14 11:33:37 -08:00

46 lines
1.2 KiB
JSON

{
"compilerOptions": {
"baseUrl": ".",
"target": "esnext",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"useUnknownInCatchVariables": false,
"paths": {
"@lib/*": ["lib/*"],
"@utils/*": ["utils/*"],
"@config/*": ["config/*"],
"@assets/*": ["assets/*"],
"@components/*": ["components/*"],
"@commerce": ["framework/commerce"],
"@commerce/*": ["framework/commerce/*"],
"@framework": ["framework/local"],
"@framework/*": ["framework/local/*"]
}
},
"include": ["next-env.d.ts", "**/*.d.ts", "**/*.ts", "**/*.tsx", "**/*.js"],
"exclude": [
"node_modules",
"./framework/local",
"./framework/bigcommerce",
"./framework/shopify",
"./framework/swell",
"./framework/vendure",
"./framework/saleor",
"./framework/spree",
"./framework/ordercloud",
"./framework/kibocommerce",
"./framework/commercejs"
]
}