wip build nextjs 13

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-03-13 15:37:49 +01:00
parent a0d0cfb5b8
commit 48ff1004f3
4 changed files with 280 additions and 529 deletions

View File

@@ -57,22 +57,27 @@ function main() {
return console.error('Version is not valid');
}
const properties = {
private: false,
version,
type: 'module',
main: './dist/index.js',
module: './dist/index.mjs',
types: './dist/index.d.ts',
files: ['dist'],
exports: {
import: './dist/index.js',
require: './dist/index.cjs',
},
};
try {
for (const name of sdkPackages) {
const properties = {
private: false,
version,
type: 'module',
main: './dist/index.js',
module: './dist/index.mjs',
types: './dist/index.d.ts',
files: ['dist'],
exports: {
import: './dist/index.js',
require: './dist/index.cjs',
},
};
if (name === 'nextjs') {
// @ts-expect-error
delete properties.type;
// @ts-expect-error
delete properties.module;
}
const pkgJson = require(
workspacePath(`./packages/sdks/${name}/package.json`)
);