diff --git a/package.json b/package.json index 2fcac0c..33daf01 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,14 @@ { "name": "jlc", "version": "1.0.0", + "type": "module", "main": "index.js", "author": "Freywar Ulvnaudgari ", "license": "MIT", "scripts": { "build": "rm -rf build && tsc", - "run": "yarn build && node build/index.js", - "run:debug": "yarn build && node --inspect-brk build/index.js", + "start": "yarn build && node --import=extensionless/register build/index.js", + "start:debug": "yarn build && node --inspect-brk --import=extensionless/register build/index.js", "test": "jest", "test:debug": "node --inspect-brk node_modules/.bin/jest --runInBand", "lint": "eslint", @@ -21,6 +22,7 @@ "@typescript-eslint/eslint-plugin": "^8.0.0", "@typescript-eslint/parser": "^8.0.0", "eslint": "^9.8.0", + "extensionless": "^1.9.9", "jest": "^29.7.0", "ts-jest": "^29.2.3", "ts-node": "^10.9.2", diff --git a/src/index.ts b/src/index.ts index 59543ed..83076f0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,8 +1,3 @@ -export * from './core'; -export * from './bool'; -export * from './num'; -export * from './byte'; -export * from './char'; -export * from './list'; -export * from './pair'; -export * from './bf'; +import { toNative as $$, _, fromNative as __, id } from './core'; + +console.log($$(id._(__('first')))); diff --git a/yarn.lock b/yarn.lock index f3d282f..0778c69 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1470,6 +1470,11 @@ expect@^29.7.0: jest-message-util "^29.7.0" jest-util "^29.7.0" +extensionless@^1.9.9: + version "1.9.9" + resolved "https://registry.yarnpkg.com/extensionless/-/extensionless-1.9.9.tgz#1ddb102f2fa164f421c195d5edaca80d9887dc91" + integrity sha512-fz0cWfLA4pgc2nwmg6lc2UH+g+NlFuD63VWqp8n1wGAZSSbPNoARkA54BxXRjYCYW9LvhBnA3NyJaGS2KudkWw== + fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"