Skip to content

Commit

Permalink
fix: ewww
Browse files Browse the repository at this point in the history
  • Loading branch information
sverben committed Mar 21, 2024
1 parent f54d53e commit 5221cf2
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@leaphy-robotics/picotool-wasm",
"version": "1.0.0",
"version": "1.0.1",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
Expand All @@ -22,6 +22,7 @@
"url": "https://github.com/leaphy-robotics/picotool-wasm/issues"
},
"devDependencies": {
"esbuild-plugin-replace-regex": "^0.0.2",
"tsup": "^8.0.2",
"typescript": "^5.4.2"
}
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */

/* Type Checking */
"strict": true, /* Enable all strict type-checking options. */
"strict": false, /* Enable all strict type-checking options. */
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
Expand Down
14 changes: 13 additions & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
import { defineConfig } from 'tsup'
import replace from 'esbuild-plugin-replace-regex'

export default defineConfig({
target: 'es2020',
format: ['cjs', 'esm'],
splitting: false,
sourcemap: true,
clean: true,
dts: true
dts: true,
esbuildOptions(options) {
if (!options.define) options.define = {}
options.define['import.meta'] = '{}'
},
esbuildPlugins: [
replace({
patterns: [
[/ENVIRONMENT_IS_NODE(?! =)/g, 'false'],
]
})
]
})
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,11 @@ emoji-regex@^9.2.2:
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.2.2.tgz#840c8803b0d8047f4ff0cf963176b32d4ef3ed72"
integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==

esbuild-plugin-replace-regex@^0.0.2:
version "0.0.2"
resolved "https://registry.yarnpkg.com/esbuild-plugin-replace-regex/-/esbuild-plugin-replace-regex-0.0.2.tgz#30eaaeb35aeba65edc5c452c20751d59d78c4851"
integrity sha512-kU3zfnr7cNMC5S0xIY+RdiFcJrUr1P892QAdFsD3FSefUk0C6rEWb1Oz/paRbwrU73x+Bu9YiwoenbtqSmtykg==

esbuild@^0.19.2:
version "0.19.12"
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.19.12.tgz#dc82ee5dc79e82f5a5c3b4323a2a641827db3e04"
Expand Down

0 comments on commit 5221cf2

Please sign in to comment.