Skip to content

Commit

Permalink
add sys node export
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Jun 27, 2024
1 parent ace66cb commit 3477347
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@
},
"./compiler/*": {
"import": "./compiler/*"
},
"./sys/node": {
"import": "./sys/node/index.js",
"require": "./sys/node/index.js",
"types": "./sys/node/index.d.ts"
},
"./sys/node/*": {
"import": "./sys/node/*",
"require": "./sys/node/*"
}
},
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions test/end-to-end/exportMap/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ const { run } = require('@stencil/core/cli');
const { h } = require('@stencil/core');
const { MockDocument } = require('@stencil/core/mock-doc');
const appData = require('@stencil/core/internal/app-data');
const { createNodeLogger } = require('@stencil/core/sys/node')

assert(typeof version === 'string');
assert(typeof run, 'function');
assert(typeof h === 'function');
assert(typeof MockDocument === 'function');
assert(Object.keys(appData).length === 3);
assert(typeof createNodeLogger === 'function');
3 changes: 2 additions & 1 deletion test/end-to-end/exportMap/index.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { version } from '@stencil/core/compiler'
import { MockDocument } from '@stencil/core/mock-doc';
import type { BuildConditionals } from '@stencil/core/internal';
import { BUILD } from '@stencil/core/internal/app-data'
import * as foo from '@stencil/core/internal/client'
import { createNodeLogger } from '@stencil/core/sys/node'

assert(typeof version === 'string')
version.slice()
Expand All @@ -16,3 +16,4 @@ run.call

assert(typeof MockDocument === 'function')
assert(typeof BUILD !== 'undefined')
assert(typeof createNodeLogger === 'function')

0 comments on commit 3477347

Please sign in to comment.