Skip to content

Commit

Permalink
Windows compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
karyon committed Aug 21, 2023
1 parent fc480fc commit 4b0f6bb
Show file tree
Hide file tree
Showing 3 changed files with 885 additions and 12 deletions.
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,22 @@
],
"scripts": {
"build": "yarn build:lib && yarn build:docs && yarn build:demo",
"script": "node -r ts-node/register scripts/$SC.ts",
"script": "cross-var node -r ts-node/register scripts/$SC.ts",
"build:lib": "tsc && tsc --project tsconfig.esm.json && yarn build:rewrite && yarn build:umd",
"build:umd": "SC=buildUMD yarn script",
"build:rewrite": "SC=rewriteBuilds yarn script",
"build:demo": "tsc --project tsconfig.demo.json && parcel build demo/index.html --public-url \"./\" && SC=cpGHPages yarn script",
"build:umd": "cross-env SC=buildUMD yarn script",
"build:rewrite": "cross-env SC=rewriteBuilds yarn script",
"build:demo": "tsc --project tsconfig.demo.json && parcel build demo/index.html --public-url \"./\" && cross-env SC=cpGHPages yarn script",
"build:docs": "typedoc --mode library --plugin typedoc-plugin-markdown --hideProjectName --hideBreadcrumbs --readme none --disableSources --excludePrivate --excludeProtected --out docs/ src/index.ts",
"test": "TS_NODE_PROJECT=test/tsconfig.json uvu -b -r ts-node/register test",
"test": "cross-env TS_NODE_PROJECT=test/tsconfig.json uvu -b -r ts-node/register test",
"prepack": "yarn build && yarn test"
},
"devDependencies": {
"@types/node": "^14.11.2",
"@types/pako": "*",
"@types/react": "^16.9.55",
"@types/react-dom": "^16.9.9",
"cross-env": "^7.0.3",
"cross-var": "^1.1.0",
"jszip": "^3.5.0",
"pako": "*",
"parcel": "^2.0.0-nightly.440",
Expand Down
3 changes: 2 additions & 1 deletion test/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ const wc = (pkg: string, method?: string): Workerized => {
}
}

const fflate = resolve(__dirname, '..');
let fflate = resolve(__dirname, '..');
fflate = fflate.replace(/\\/g, '/', );

export const workers = {
fflate: {
Expand Down
Loading

0 comments on commit 4b0f6bb

Please sign in to comment.