-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ESM and CJS exports on renderers (#21)
- Loading branch information
1 parent
5a6e769
commit 0dec0c8
Showing
27 changed files
with
86 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
"@kinobi-so/renderers-js-umi": patch | ||
"@kinobi-so/renderers-core": patch | ||
"@kinobi-so/renderers-rust": patch | ||
"@kinobi-so/renderers-js": patch | ||
"kinobi": patch | ||
"@kinobi-so/errors": patch | ||
"@kinobi-so/nodes": patch | ||
--- | ||
|
||
Fix ESM and CJS exports on renderers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module.exports = { | ||
extends: ['turbo', '@solana/eslint-config-solana'], | ||
root: true, | ||
ignorePatterns: ['.eslintrc.js', '.eslintrc.cjs', 'dist/', '*.json', '*.njk', '*.cjs'], | ||
ignorePatterns: ['.eslintrc.js', '.eslintrc.cjs', 'dist/', '*.json', '*.njk'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const { definedTypeNode, numberTypeNode } = require('@kinobi-so/nodes'); | ||
const { visit } = require('@kinobi-so/visitors-core'); | ||
|
||
const { getRenderMapVisitor } = require('../../dist/index.node.cjs'); | ||
|
||
const node = definedTypeNode({ name: 'answerToLife', type: numberTypeNode('u8') }); | ||
visit(node, getRenderMapVisitor()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// This ensures that we do not rely on `__dirname` in ES modules even when it is polyfilled. | ||
globalThis.__dirname = 'DO_NOT_USE'; | ||
|
||
import { definedTypeNode, numberTypeNode } from '@kinobi-so/nodes'; | ||
import { visit } from '@kinobi-so/visitors-core'; | ||
|
||
import { getRenderMapVisitor } from '../../dist/index.node.mjs'; | ||
|
||
const node = definedTypeNode({ name: 'answerToLife', type: numberTypeNode('u8') }); | ||
visit(node, getRenderMapVisitor()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const { definedTypeNode, numberTypeNode } = require('@kinobi-so/nodes'); | ||
const { visit } = require('@kinobi-so/visitors-core'); | ||
|
||
const { getRenderMapVisitor } = require('../../dist/index.node.cjs'); | ||
|
||
const node = definedTypeNode({ name: 'answerToLife', type: numberTypeNode('u8') }); | ||
visit(node, getRenderMapVisitor()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// This ensures that we do not rely on `__dirname` in ES modules even when it is polyfilled. | ||
globalThis.__dirname = 'DO_NOT_USE'; | ||
|
||
import { definedTypeNode, numberTypeNode } from '@kinobi-so/nodes'; | ||
import { visit } from '@kinobi-so/visitors-core'; | ||
|
||
import { getRenderMapVisitor } from '../../dist/index.node.mjs'; | ||
|
||
const node = definedTypeNode({ name: 'answerToLife', type: numberTypeNode('u8') }); | ||
visit(node, getRenderMapVisitor()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const { definedTypeNode, numberTypeNode } = require('@kinobi-so/nodes'); | ||
const { visit } = require('@kinobi-so/visitors-core'); | ||
|
||
const { getRenderMapVisitor } = require('../../dist/index.node.cjs'); | ||
|
||
const node = definedTypeNode({ name: 'answerToLife', type: numberTypeNode('u8') }); | ||
visit(node, getRenderMapVisitor()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// This ensures that we do not rely on `__dirname` in ES modules even when it is polyfilled. | ||
globalThis.__dirname = 'DO_NOT_USE'; | ||
|
||
import { definedTypeNode, numberTypeNode } from '@kinobi-so/nodes'; | ||
import { visit } from '@kinobi-so/visitors-core'; | ||
|
||
import { getRenderMapVisitor } from '../../dist/index.node.mjs'; | ||
|
||
const node = definedTypeNode({ name: 'answerToLife', type: numberTypeNode('u8') }); | ||
visit(node, getRenderMapVisitor()); |